Hello Marek, On 10/25/2016 09:34 AM, Marek Szyprowski wrote: > The Exynos PMU node is an interrupt, clock and PMU (Power Management Unit) > controller, and these functionalities are supported by different drivers > that matches the same compatible strings. > > Since commit 989eafd0b609 ("clk: core: Avoid double initialization of > clocks") the OF core flags clock controllers registered with the > CLK_OF_DECLARE() macro as OF_POPULATED, so platform devices with the same > compatible string as the interrupt controller will not be registered. > > This prevents the PMU platform device to be registered so the Exynos PMU > driver is never probed. This breaks (among other things) Suspend-to-RAM. > > Fix this by clearing the OF_POPULATED flag in the clkout driver init > callback, to allow the Exynos PMU platform driver to be probed. The patch > is based on similar patch from Javier Martinez Canillas: b030485220ca > "ARM: EXYNOS: Clear OF_POPULATED flag from PMU node in IRQ init callback". > > Fixes: 989eafd0b609 ("clk: core: Avoid double initialization of clocks") > Signed-off-by: Marek Szyprowski <m.szyprowski@xxxxxxxxxxx> > --- The patch looks good to me: Reviewed-by: Javier Martinez Canillas <javier@xxxxxxxxxxxxxxx> I've also tested it on an Exynos5800 Peach Pi, the PMU driver is probed and S2R works correctly: Tested-by: Javier Martinez Canillas <javier@xxxxxxxxxxxxxxx> Best regards, -- Javier Martinez Canillas Open Source Group Samsung Research America -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html