Skip to content

Commit a3fa983

Browse files
PatrickRudolphbroonie
authored andcommitted
regulator (max5970): Fix IRQ handler
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 <[email protected]> Signed-off-by: Naresh Solanki <[email protected]> Link: https://msgid.link/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent a67e1f0 commit a3fa983

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/regulator/max5970-regulator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ static int max597x_regmap_read_clear(struct regmap *map, unsigned int reg,
392392
return ret;
393393

394394
if (*val)
395-
return regmap_write(map, reg, *val);
395+
return regmap_write(map, reg, 0);
396396

397397
return 0;
398398
}

0 commit comments

Comments
 (0)