regulator: da9210: Mask all interrupt sources to deassert interrupt line
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 17 Feb 2015 12:11:11 +0000 (13:11 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 17 Feb 2015 14:04:15 +0000 (23:04 +0900)
commit4d9cbff5aae65880e3d1e44357924fafc8d8bea0
tree99d41c5f43aae8427d3e63e1cbc24330662ab717
parentbfa76d49576599a4b9f9b7a71f23d73d6dcff735
regulator: da9210: Mask all interrupt sources to deassert interrupt line

After boot-up, some events may be set, and cause the da9210 interrupt
line to be asserted. As the da9210 driver doesn't have interrupt support
yet, this causes havoc on systems where the interrupt line is shared
among multiple devices.

This is the case on e.g. r8a7791/koelsch, where the interrupt line is
shared with a da9063 regulator, and the following events are set:

    EVENT_A = 0x00000011 (GPI0 | GPI4)
    EVENT_B = 0x00000002 (NPWRGOOD)

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/da9210-regulator.c