[PATCH/RFC] ARM: shmobile: Enable PM_RUNTIME in defconfig

Geert Uytterhoeven geert at linux-m68k.org
Fri May 16 00:17:03 PDT 2014


Hi Simon,

On Fri, May 16, 2014 at 4:05 AM, Simon Horman <horms at verge.net.au> wrote:
> I realise this change was your idea but I'd like to confirm some details.
>
> My assumption is that it requires
>
> [PATCH v4] drivers: sh: compile drivers/sh/pm_runtime.c if ARCH_SHMOBILE_MULTI
>
> Is that indeed required?
> Are there other dependencies that are not in the next branch
> of my renesas tree?

Your assumption is wrong. The aforementioned patch is always needed in
the multi-platform case.

Please let me clarify:
drivers/sh/pm_runtime.c registers a bus notifier for platform devices, which
registers the default clock for automatic clock management by the PM core.
If CONFIG_PM_RUNTIME=y, the clock will be managed dynamically, based
on runtime requirements.
If CONFIG_PM_RUNTIME=n, the clock will be enabled at registration time.

So even if CONFIG_PM_RUNTIME=n, you need this patch, else the affected
clocks won't be enabled (if not already enabled by reset state or the boot
loader).

Note that some drivers (e.g. sh-sci) will still work fine without
drivers/sh/pm_runtime.c, as they manage their clocks themselves.

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

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



More information about the linux-arm-kernel mailing list