Re: [PATCH v3] pwm: bcm2835: Add support for suspend/resume

From: Thierry Reding
Date: Thu Oct 12 2023 - 09:55:15 EST


On Wed, Oct 11, 2023 at 10:07:17AM -0700, Florian Fainelli wrote:
> Similar to other drivers, we need to make sure that the clock is
> disabled during suspend and re-enabled during resume.
>
> Reported-by: Angus Clark <angus.clark@xxxxxxxxxxxx>
> Signed-off-by: Florian Fainelli <florian.fainelli@xxxxxxxxxxxx>
> ---
> Changes in v3:
>
> - removed __maybe_unused and use pm_ptr()
>
> Changes in v2:
>
> - use DEFINE_SIMPLE_DEV_PM_OPS as suggested by Uwe
>
> drivers/pwm/pwm-bcm2835.c | 20 ++++++++++++++++++++
> 1 file changed, 20 insertions(+)

Applied, thanks.

Thierry