aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd/wm831x
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-06-02 14:18:52 -0400
committerSamuel Ortiz <sameo@linux.intel.com>2011-07-31 17:28:20 -0400
commitc1a82780b41e78f31636c49279ce940afe60a453 (patch)
treea8769c072230d413c53fbfffa46d466965c8510f /include/linux/mfd/wm831x
parent5c05a8d1f0105ada3cb04be5b70686fc6b272619 (diff)
mfd: Read wm831x AUXADC conversion results before acknowledging interrupt
Ensure that there's no possibility of loosing an AUXADC interrupt by reading the conversion result in the IRQ handler when using interrupts. Otherwise it's possible that under very heavy load a new conversion could be initiated before the acknowledgement for a previous interrupt has happened. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/linux/mfd/wm831x')
-rw-r--r--include/linux/mfd/wm831x/core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mfd/wm831x/core.h b/include/linux/mfd/wm831x/core.h
index 9564cf315276..592e4fd6ab3f 100644
--- a/include/linux/mfd/wm831x/core.h
+++ b/include/linux/mfd/wm831x/core.h
@@ -278,6 +278,7 @@ struct wm831x {
278 278
279 struct mutex auxadc_lock; 279 struct mutex auxadc_lock;
280 struct completion auxadc_done; 280 struct completion auxadc_done;
281 u16 auxadc_data;
281 282
282 /* The WM831x has a security key blocking access to certain 283 /* The WM831x has a security key blocking access to certain
283 * registers. The mutex is taken by the accessors for locking 284 * registers. The mutex is taken by the accessors for locking