Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drivers: sh: Disable PM runtime for multi-platform r8a7740 with genpd

If the default PM domain using PM_CLK is used for PM runtime, the real PM
domain(s) cannot be registered from DT later.

Hence do not enable it when running a multi-platform kernel with genpd
support on an r8a7740. The R-Mobile PM domain driver will take care of
PM runtime management of the module clocks.

The default PM domain is still needed for:
- platforms without genpd support,
- the legacy (non-DT) case, where genpd may take over later, except
for the C5 "always on" PM domain.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>

authored by

Geert Uytterhoeven and committed by
Simon Horman
a5cb514f c517d838

+2
+2
drivers/sh/pm_runtime.c
··· 81 81 if (!of_machine_is_compatible("renesas,emev2") && 82 82 !of_machine_is_compatible("renesas,r7s72100") && 83 83 !of_machine_is_compatible("renesas,r8a73a4") && 84 + #ifndef CONFIG_PM_GENERIC_DOMAINS_OF 84 85 !of_machine_is_compatible("renesas,r8a7740") && 86 + #endif 85 87 !of_machine_is_compatible("renesas,r8a7778") && 86 88 !of_machine_is_compatible("renesas,r8a7779") && 87 89 !of_machine_is_compatible("renesas,r8a7790") &&