Re: [PATCH] pwm: imx-tpm: force 'real_period' to be zero in suspend

From: Uwe Kleine-König
Date: Wed Jun 14 2023 - 05:00:27 EST


On Fri, May 05, 2023 at 02:58:39PM +0800, Clark Wang wrote:
> From: Fancy Fang <chen.fang@xxxxxxx>
>
> During suspend, all the tpm registers will lose values.
> So the 'real_period' value of struct 'imx_tpm_pwm_chip'
> should be forced to be zero to force the period update
> code can be executed after system resume back.
>
> Signed-off-by: Fancy Fang <chen.fang@xxxxxxx>
> Signed-off-by: Clark Wang <xiaoning.wang@xxxxxxx>

Acked-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx>
Fixes: 738a1cfec2ed ("pwm: Add i.MX TPM PWM driver support")

Best regards
Uwe

--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | https://www.pengutronix.de/ |

Attachment: signature.asc
Description: PGP signature