Re: [PATCH 4/4] clk: renesas: cpg-mssr: Export cpg_mssr_{at,de}tach_dev()

Geert Uytterhoeven
2016-04-07T11:26:04Z

On Wed, Mar 9, 2016 at 8:18 PM, Geert Uytterhoeven
<geert+renesas@glider.be> wrote:
> The R-Car SYSC PM Domain driver has to power manage devices in power
> areas using clocks. To reuse code and to share knowledge of clocks
> suitable for power management, this is ideally done through the existing
> cpg_mssr_attach_dev() and cpg_mssr_detach_dev() callbacks.
>
> Hence these callbacks can no longer rely on their "domain" parameter
> pointing to the CPG/MSSR Clock Domain. To handle this, keep a pointer to
> the clock domain in a static variable. cpg_mssr_attach_dev() has to
> support probe deferral, as the R-Car SYSC PM Domain may be initialized,
> and devices may be added to it, before the CPG/MSSR Clock Domain is
> initialized.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

I'd like to withdraw this patch, as I found a much cleaner solution.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@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