Skip to content

Commit d27bb69

Browse files
MarijnS95broonie
authored andcommitted
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: 390af53 ("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>
1 parent 5d55cbc commit d27bb69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/regulator/qcom-labibb-regulator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ static irqreturn_t qcom_labibb_ocp_isr(int irq, void *chip)
260260

261261
/* If the regulator is not enabled, this is a fake event */
262262
if (!ops->is_enabled(vreg->rdev))
263-
return 0;
263+
return IRQ_HANDLED;
264264

265265
/* If we tried to recover for too many times it's not getting better */
266266
if (vreg->ocp_irq_count > LABIBB_MAX_OCP_COUNT)

0 commit comments

Comments
 (0)