Skip to content

ARM: shmobile: Enable drivers/sh/pm_runtime.c on multi-platform

Geert Uytterhoeven linux-sh 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5drivers: sh: pm_runtime does not need idle callbackdrivers/sh/pm_runtime.c+0 -80 replies
2/5sh: intc: Restrict INTC_USERIMASK to SH4Adrivers/sh/intc/Kconfig+1 -10 replies
3/5drivers: sh: compile drivers/sh/pm_runtime.c if ARCH_SHMOBILE_MULTIdrivers/Makefile drivers/sh/Makefile drivers/sh/pm_runtime.c+21 -90 replies
4/5ARM: shmobile: Call sh_pm_runtime_init() from platform code on all SoCsarch/arm/mach-shmobile/include/mach/common.h arch/arm/mach-shmobile/setup-emev2.c arch/arm/mach-shmobile/setup-r7s72100.c +8 more+19 -03 replies
5/5drivers: sh: Remove automatic sh_pm_runtime_init() if ARCH_SHMOBILE_LEGACYdrivers/sh/pm_runtime.c+1 -40 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchLaurent PinchartKuninori Morimoto
SeriesR-b T-b T-b
1/5
2/5
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] ARM: shmobile: Enable drivers/sh/pm_runtime.c on multi-platform

This patchset enables the PM runtime code in drivers/sh/pm_runtime.c when running a multi-platform ARM kernel including support for shmobile. Before this code was only enabled for legacy shmobile kernels, leading to disabled clocks in multiplatform kernels, depending on implicit reset state or on the bootloader.

[1/5] drivers: sh: pm_runtime does not need idle callback [2/5] sh: intc: Restrict INTC_USERIMASK to SH4A
[3/5] drivers: sh: compile drivers/sh/pm_runtime.c if ARCH_SHMOBILE_MULTI [4/5] ARM: shmobile: Call sh_pm_runtime_init() from platform code on all
SoCs
[5/5] drivers: sh: Remove automatic sh_pm_runtime_init() if
ARCH_SHMOBILE_LEGACY

Patches 1 and 3 were authored by Ben Dooks, with some changes made by me (for patch 3). Patch 4 was based on a patch by Ben for r8a7790.

After this it should be safe to revert the various commits to "Work around core clock issues". Note that this is just a port of the existing sh(mobile)-specifc PM runtime code from legacy to multi-platform, so expect more work to fix the core issues.

This was tested on Koelsch, both legacy and multi-platform.

Many thanks to Ben Dooks, Laurent Pinchart, and Magnus Damm for the valuable input, investigations, and discussions.

Thanks for your comments, and test results on other boards/SoCs (esp. SoCs supporting power domains, like sh7372, r8a7740, and r8a7779)!

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

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