]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
regulator (max5970): Fix IRQ handler
authorPatrick Rudolph <patrick.rudolph@9elements.com>
Tue, 30 Jan 2024 15:02:56 +0000 (20:32 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Mar 2024 12:34:51 +0000 (13:34 +0100)
commitf7d799076a55aed4accd134442a33e4fef7c2757
treef053471993c4e879e9db8a17c0eac0d4e68f90de
parent04d46a95642e6d407af4783a9b9fe16888eb23af
regulator (max5970): Fix IRQ handler

[ Upstream commit a3fa9838e8140584a6f338e8516f2b05d3bea812 ]

The max5970 datasheet gives the impression that IRQ status bits must
be cleared by writing a one to set bits, as those are marked with 'R/C',
however tests showed that a zero must be written.

Fixes an IRQ storm as the interrupt handler actually clears the IRQ
status bits.

Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Signed-off-by: Naresh Solanki <naresh.solanki@9elements.com>
Link: https://msgid.link/r/20240130150257.3643657-1-naresh.solanki@9elements.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/regulator/max5970-regulator.c