Hi Ulf, On Fri, Aug 15, 2014 at 4:42 PM, Ulf Hansson <ulf.hansson@xxxxxxxxxx> wrote: > On 14 August 2014 17:23, Geert Uytterhoeven <geert+renesas@xxxxxxxxx> wrote: >> On R-Car Gen 2, the SDHI registers cannot be accessed while the SDHI >> module clock is disabled. Doing so will cause a lock-up. >> >> When suspending, enable the module clock before disabling the SDHI >> interrupts, and disable the clock again afterwards. >> >> This fixes suspend and resume on r8a7791/koelsch. > > Out of curiosity, are you using CONFIG_PM_RUNTIME to trigger this bug? Yes I am: $ grep CONFIG_PM .config CONFIG_PM_SLEEP=y CONFIG_PM_SLEEP_SMP=y # CONFIG_PM_AUTOSLEEP is not set # CONFIG_PM_WAKELOCKS is not set CONFIG_PM_RUNTIME=y CONFIG_PM=y CONFIG_PM_DEBUG=y CONFIG_PM_ADVANCED_DEBUG=y # CONFIG_PM_TEST_SUSPEND is not set CONFIG_PM_SLEEP_DEBUG=y CONFIG_PM_OPP=y CONFIG_PM_CLK=y # CONFIG_PMIC_ADP5520 is not set # CONFIG_PMIC_DA903X is not set # CONFIG_PM_DEVFREQ is not set $ Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html