Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5375c024 authored by Fancy Fang's avatar Fancy Fang Committed by Greg Kroah-Hartman
Browse files

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



[ Upstream commit 661dfb7f46298e53f6c3deaa772fa527aae86193 ]

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: default avatarFancy Fang <chen.fang@nxp.com>
Signed-off-by: default avatarClark Wang <xiaoning.wang@nxp.com>
Acked-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fixes: 738a1cfe ("pwm: Add i.MX TPM PWM driver support")
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent d252c74b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment