regulator: qcom-labibb: OCP interrupts are not a failure while disabled
authorMarijn Suijten <marijn.suijten@somainline.org>
Fri, 24 Dec 2021 11:34:50 +0000 (12:34 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 10:03:47 +0000 (11:03 +0100)
commita96546df99ea0851b6839c35ac129c535f0b2d97
tree789ce980e0695295ab5cd72a78d83c432e6b0bd1
parent78cafdf7d219bd10b365fc1a6a9da67daf0a1d62
regulator: qcom-labibb: OCP interrupts are not a failure while disabled

[ Upstream commit d27bb69dc83f00f86a830298c967052cded6e784 ]

Receiving the Over-Current Protection interrupt while the regulator is
disabled does not count as unhandled/failure (IRQ_NONE, or 0 as it were)
but a "fake event", usually due to inrush as the is regulator about to
be enabled.

Fixes: 390af53e0411 ("regulator: qcom-labibb: Implement short-circuit and over-current IRQs")
Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
Link: https://lore.kernel.org/r/20211224113450.107958-1-marijn.suijten@somainline.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/regulator/qcom-labibb-regulator.c