[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHp75VebJrb2VLSz7j+gX1RsVggHt1hNu7QyMWmPsY7D+UjUFw@mail.gmail.com>
Date: Sat, 31 Jul 2021 11:07:07 +0300
From: Andy Shevchenko <andy.shevchenko@...il.com>
To: Stephen Boyd <sboyd@...nel.org>
Cc: Russell King <linux@...linux.org.uk>,
Uwe Kleine-König
<u.kleine-koenig@...gutronix.de>,
Michael Turquette <mturquette@...libre.com>,
Claudiu Beznea <Claudiu.Beznea@...rochip.com>,
Alexandre Belloni <alexandre.belloni@...tlin.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Thierry Reding <thierry.reding@...il.com>,
Lee Jones <lee.jones@...aro.org>,
linux-clk <linux-clk@...r.kernel.org>,
"open list:REAL TIME CLOCK (RTC) SUBSYSTEM"
<linux-rtc@...r.kernel.org>,
Ludovic Desroches <Ludovic.Desroches@...rochip.com>,
Oleksij Rempel <o.rempel@...gutronix.de>,
Alexandru Ardelean <aardelean@...iqon.com>,
linux-pwm@...r.kernel.org, Arnd Bergmann <arnd@...db.de>,
Mark Brown <broonie@...nel.org>,
Jonathan Cameron <Jonathan.Cameron@...wei.com>,
linux-arm Mailing List <linux-arm-kernel@...ts.infradead.org>,
Alessandro Zummo <a.zummo@...ertech.it>,
linux-spi <linux-spi@...r.kernel.org>,
Wolfram Sang <wsa@...nel.org>,
Sascha Hauer <kernel@...gutronix.de>,
Andrew Morton <akpm@...ux-foundation.org>,
Linus Torvalds <torvalds@...ux-foundation.org>
Subject: Re: About clk maintainership [Was: Re: [PULL] Add variants of
devm_clk_get for prepared and enabled clocks enabled clocks]
On Sat, Jul 31, 2021 at 10:41 AM Stephen Boyd <sboyd@...nel.org> wrote:
> Quoting Russell King (Oracle) (2021-07-28 13:40:34)
> > > I adapted the Subject in the hope to catch Stephen's and Michael's
> > > attention. My impression is that this thread isn't on their radar yet,
> > > but the topic here seems important enough to get a matching Subject.
> I still wonder if it would be better if we had some sort of DT binding
> that said "turn this clk on when the driver probes this device and keep
> it on until the driver is unbound".
DT is not the only way the clocks are established in the kernel.
> That would probably work well for
> quite a few drivers that don't want to ever call clk_get() or
> clk_prepare_enable() and could tie into the assigned-clock-rates
> property in a way that let us keep the platform details out of the
> drivers.
> We could also go one step further and make a clk pm domain when
> this new property is present and then have the clk be enabled based on
> runtime PM of the device (and if runtime PM is disabled then just enable
> it at driver probe time).
This sounds like a good idea from a usage perspective.
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists