Re: [PATCH] pwm: stm32: Implement .get_state()

From: Philipp Zabel
Date: Tue Jul 18 2023 - 10:29:23 EST


Hi Fabrice,

On Fr, 2023-06-09 at 15:06 +0200, Fabrice Gasnier wrote:
[...]
> > @@ -635,7 +675,10 @@ static int stm32_pwm_probe(struct platform_device *pdev)
> >
> > priv->chip.dev = dev;
> > priv->chip.ops = &stm32pwm_ops;
> > - priv->chip.npwm = stm32_pwm_detect_channels(priv);
> > + priv->chip.npwm = stm32_pwm_detect_channels(priv, &n_enabled);
> > +
>
> I'd suggest to comment a bit here, to explain it initializes the PWM
> counter clock refcount in sync with PWM initial state left by the
> bootloader.
>
> In all case, this is fine for me, you can add my:
> Reviewed-by: Fabrice Gasnier <fabrice.gasnier@xxxxxxxxxxx>

Thank you, I'll add a comment here.

regards
Philipp