]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerMark Brown <broonie@kernel.org>
Fri, 24 Dec 2021 14:07:02 +0000 (14:07 +0000)
commitc421cf200e3c1562a984d0b3aa173b9fe4a64c5a
tree7fd2e63e5b07bb8672a81bab8301cad58d5bb1cd
parentd13cafc3561ed2deaea3813d5e2958fee15a4699
regulator: qcom-labibb: OCP interrupts are not a failure while disabled

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: 5a35ebdab131 ("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>
drivers/regulator/qcom-labibb-regulator.c