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

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Wed Jun 14 01:59:47 PDT 2023


On Fri, May 05, 2023 at 02:58:39PM +0800, Clark Wang wrote:
> From: Fancy Fang <chen.fang at nxp.com>
> 
> 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 at nxp.com>
> Signed-off-by: Clark Wang <xiaoning.wang at nxp.com>

Acked-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
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/ |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20230614/53c0f361/attachment.sig>


More information about the linux-arm-kernel mailing list