mfd: tps65218: Make INT[12] and STATUS registers volatile
authorFelipe Balbi <balbi@ti.com>
Fri, 26 Dec 2014 19:28:20 +0000 (13:28 -0600)
committerLee Jones <lee.jones@linaro.org>
Tue, 20 Jan 2015 12:52:50 +0000 (12:52 +0000)
commit773328da243978bebac82bf4c45604281edb6975
tree4ef1c07195206c5d74387c1daa32dbe86d2d3d6b
parentb3f6c73db732704945408cec19f2391d3eb7483e
mfd: tps65218: Make INT[12] and STATUS registers volatile

STATUS register can be modified by the HW, so we
should bypass cache because of that.

In the case of INT[12] registers, they are the ones
that actually clear the IRQ source at the time they
are read. If we rely on the cache for them, we will
never be able to clear the interrupt, which will cause
our IRQ line to be disabled due to IRQ throttling.

Fixes: 44b4dc6 mfd: tps65218: Add driver for the TPS65218 PMIC
Cc: <stable@vger.kernel.org> # v3.15+
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/tps65218.c