]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
pwm: berlin: Fix wrong register in suspend/resume
authorJisheng Zhang <jszhang@kernel.org>
Tue, 19 Aug 2025 11:42:24 +0000 (19:42 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 19 Oct 2025 14:23:15 +0000 (16:23 +0200)
commitfd017aabd4273216ed4223f17991fc087163771f
tree148fe10c5b50b950d30872bbef8f774d8c85cf4b
parentda285b7e8c31052cb9bb8562eac80b443747594a
pwm: berlin: Fix wrong register in suspend/resume

commit 3a4b9d027e4061766f618292df91760ea64a1fcc upstream.

The 'enable' register should be BERLIN_PWM_EN rather than
BERLIN_PWM_ENABLE, otherwise, the driver accesses wrong address, there
will be cpu exception then kernel panic during suspend/resume.

Fixes: bbf0722c1c66 ("pwm: berlin: Add suspend/resume support")
Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Link: https://lore.kernel.org/r/20250819114224.31825-1-jszhang@kernel.org
Cc: stable@vger.kernel.org
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pwm/pwm-berlin.c