Thread (119 messages) 119 messages, 7 authors, 2021-08-26

Re: [PATCH v8 19/34] pwm: tegra: Add runtime PM and OPP support

From: Thierry Reding <hidden>
Date: 2021-08-19 16:17:07
Also in: dri-devel, linux-clk, linux-devicetree, linux-media, linux-mmc, linux-pm, linux-pwm, linux-spi, linux-tegra, linux-usb, lkml

On Thu, Aug 19, 2021 at 04:04:50PM +0200, Ulf Hansson wrote:
On Thu, 19 Aug 2021 at 15:21, Thierry Reding [off-list ref] wrote:
quoted
On Tue, Aug 17, 2021 at 04:27:39AM +0300, Dmitry Osipenko wrote:
quoted
The PWM on Tegra belongs to the core power domain and we're going to
enable GENPD support for the core domain. Now PWM must be resumed using
runtime PM API in order to initialize the PWM power state. The PWM clock
rate must be changed using OPP API that will reconfigure the power domain
performance state in accordance to the rate. Add runtime PM and OPP
support to the PWM driver.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
---
 drivers/pwm/pwm-tegra.c | 104 ++++++++++++++++++++++++++++++++--------
 1 file changed, 85 insertions(+), 19 deletions(-)
Can this be safely applied independently of the rest of the series, or
are there any dependencies on earlier patches?
Just to make sure we don't rush something in, I would rather withhold
all runtime PM related patches in the series, until we have agreed on
how to fix the in genpd/opp core parts. Simply, because those may very
well affect the deployments in the drivers.
Okay, understood. I didn't realize this may have an impact on how
drivers need to cooperate. I'll hold off on applying any of these
patches until the discussion has settled, then.

Thierry

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help