All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andre Przywara <andre.przywara@arm.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v4 0/9] mmc: sunxi: Enable DM_MMC
Date: Wed, 30 Jan 2019 13:56:12 +0000	[thread overview]
Message-ID: <20190130135612.78970fe9@donnerap.cambridge.arm.com> (raw)
In-Reply-To: <CAMty3ZDqTRreLM25=z6VHU9gjaxo1YdZhhxpECu48tcUwTJs2Q@mail.gmail.com>

On Wed, 30 Jan 2019 18:20:31 +0530
Jagan Teki <jagan@amarulasolutions.com> wrote:

> On Wed, Jan 30, 2019 at 5:17 PM Andre Przywara
> <andre.przywara@arm.com> wrote:
> >
> > On Wed, 30 Jan 2019 11:16:07 +0100
> > Tomas Novotny <tomas@novotny.cz> wrote:
> >
> > Hi,
> >  
> > > On Tue, 29 Jan 2019 15:54:07 +0000, Andre Przywara
> > > <andre.przywara@arm.com> wrote:  
> > > > This series gathers all remaining patches we need to enable
> > > > DM_MMC for Allwinner boards. It relies on the clock gates
> > > > framework already merged, and adds the respective gates and
> > > > resets for each SoC. It then teaches the sunxi MMC driver to
> > > > use the clock framework for those reset and gates clocks. The
> > > > "mod clock", responsible for setting the actual interface
> > > > speed, is still handled in the MMC driver, as the DM_CLK part
> > > > of that is not ready yet (and is not trivial). This allows to
> > > > turn on DM_MMC, and gets rid of the doomsday warning message
> > > > every Allwinner board was blessed with for a while.
> > > >
> > > > This series is available at:
> > > > https://github.com/apritzel/u-boot/commits/sunxi-dm-gates  
> > >
> > > I've briefly tested that branch on A83t mainlined tablet (TBS
> > > A711). I was able to boot from SD card and eMMC.
> > >
> > > Just noticed that message:
> > > MMC:   Device 'mmc at 1c11000': seq 1 is in use by 'mmc at 1c10000'
> > > mmc at 1c0f000: 0, mmc at 1c10000: 2, mmc at 1c11000: 1
> > > I guess that this is the mmc1/2 renaming stuff?  
> >
> > I think so. So is this just a warning, and it continues anyway and
> > works?
> >
> > TBH, I don't like this patch 9/9 very much, I actually believe
> > relying on this numbering scheme in /aliases is something odd and
> > fragile. Especially since Linux (and other OSes) seem to get away
> > without it.
> >
> > For MMC, can't we just enumerate them dynamically? AFAIU the MMC
> > driver would not probe a block device successfully on an SDIO
> > device, would it?
> >
> > But for the sake of having something working, I am fine with the
> > patch, at least on a for-now basis.  
> 
> It's not a simple think that 9/9 fix is for,It's something big like
> w/o that we can't get the default env and fastboot devices because we
> always assign mmc1 for these purposes and indeed mmc1 is SDIO for DT
> enumeration.

Yeah, but why is it enumerating mmc1 in the first place? It doesn't
seem to be usable? The MMC layer should know that there is no block
device behind this SDIO thing, so it shouldn't even bother with
creating a device for it. Certainly Linux works this way.

I understand that it fixes the issue, but it's some sort of hack,
especially as it's applied to all DTs.

Cheers,
Andre.

  reply	other threads:[~2019-01-30 13:56 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-29 15:54 [U-Boot] [PATCH v4 0/9] mmc: sunxi: Enable DM_MMC Andre Przywara
2019-01-29 15:54 ` [U-Boot] [PATCH v4 1/9] sunxi: clk: enable clk and reset for CCU devices Andre Przywara
2019-01-29 18:10   ` Jagan Teki
2019-01-29 18:16     ` Andre Przywara
2019-01-29 18:26       ` Jagan Teki
2019-01-30 10:33         ` Andre Przywara
2019-01-30 10:38           ` Jagan Teki
2019-01-30 10:55             ` Andre Przywara
2019-01-30 12:46               ` Jagan Teki
2019-01-30 13:42                 ` Andre Przywara
2019-01-30 14:19                   ` Jagan Teki
2019-01-30 14:31                     ` Andre Przywara
2019-01-30 14:47                       ` Jagan Teki
2019-01-30 16:13                         ` Andre Przywara
2019-01-30 16:24                           ` Jagan Teki
2019-01-29 15:54 ` [U-Boot] [PATCH v4 2/9] sunxi: clk: add MMC gates/resets Andre Przywara
2019-01-29 18:02   ` Jagan Teki
2019-01-29 15:54 ` [U-Boot] [PATCH v4 3/9] sunxi: clk: A80: add MMC clock support Andre Przywara
2019-01-29 18:04   ` Jagan Teki
2019-01-29 18:13   ` Jagan Teki
2019-01-29 15:54 ` [U-Boot] [PATCH v4 4/9] mmc: sunxi: Add remaining compatible strings Andre Przywara
2019-01-29 18:08   ` Jagan Teki
2019-01-29 15:54 ` [U-Boot] [PATCH v4 5/9] mmc: sunxi: Add DM_MMC support for H6 Andre Przywara
2019-01-29 18:08   ` Jagan Teki
2019-01-29 15:54 ` [U-Boot] [PATCH v4 6/9] mmc: sunxi: Add DM clk and reset support Andre Przywara
2019-01-29 18:14   ` Jagan Teki
2019-01-29 15:54 ` [U-Boot] [PATCH v4 7/9] sunxi: board: do MMC pinmux setup for DM_MMC builds Andre Przywara
2019-01-29 18:17   ` Jagan Teki
2019-01-29 15:54 ` [U-Boot] [PATCH v4 8/9] arm: sunxi: Enable DM_MMC Andre Przywara
2019-01-29 15:54 ` [U-Boot] [PATCH v4 9/9] arm: dts: sunxi: Enumerate MMC2 as MMC1 Andre Przywara
2019-01-29 17:42 ` [U-Boot] [PATCH v4 0/9] mmc: sunxi: Enable DM_MMC Jagan Teki
2019-01-29 17:49   ` Andre Przywara
2019-01-29 17:53     ` Jagan Teki
2019-01-30 10:16 ` Tomas Novotny
2019-01-30 11:46   ` Andre Przywara
2019-01-30 12:50     ` Jagan Teki
2019-01-30 13:56       ` Andre Przywara [this message]
2019-01-30 13:35     ` Tomas Novotny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190130135612.78970fe9@donnerap.cambridge.arm.com \
    --to=andre.przywara@arm.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.