Re: [PATCH v3 0/7] mmc: sunxi: Add runtime PM support

Maxime Ripard
2018-07-20T14:51:43Z

[-- Attachment #1.1: Type: text/plain, Size: 1650 bytes --]

Hi Ondrej,

On Mon, Jul 16, 2018 at 07:14:28PM +0200, Ondřej Jirman wrote:
> On Mon, Apr 16, 2018 at 04:22:58PM +0200, Maxime Ripard wrote:
> > Hi,
> >
> > Since it's introduction, our MMC controller has had its external clocks
> > running all the time.
> >
> > While that was working great, the power usage and most importantly the EMI
> > that it generated was pretty bad.
> >
> > Let's implement some runtime_pm hooks with an autosuspend to shut down the
> > whole block when the MMC is not active.
> >
> > However, some SDIO devices will not probe properly if we keep shutting down
> > the controller, so the autosuspend is disabled for the SDIO devices.
>
> I've tested your patches on TBS A711 tablet (A83T). I get this in the log:
>
> sunxi-mmc 1c10000.mmc: fatal err update clk timeout
>
> Interestingly, this only happens after the first boot. If I hard power cycle the
> tablet (removing/reinserting the battery) the first boot after that, there's no
> timeout, and WiFi chip connected to the mmc controller works.
>
> Any other reboot (even power cycling via PMIC), it fails with the above error.
> Maybe there's some unforeseen interaction of runtime PM with mmc-powerseq used
> for the wifi chip power seuencing? Do you know what's the above error about?
> I don't know anything about mmc subsystem.

It's kind of weird. Do you have an oscilloscope available to look at
the clock signal (and the reset gpio) and see if there's any
difference of behaviour?

Thanks!
Maxime

--
Maxime Ripard, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org