diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-06-02 22:18:52 +0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-08-01 01:28:20 +0400 |
commit | c1a82780b41e78f31636c49279ce940afe60a453 (patch) | |
tree | a8769c072230d413c53fbfffa46d466965c8510f /include | |
parent | 5c05a8d1f0105ada3cb04be5b70686fc6b272619 (diff) | |
download | linux-c1a82780b41e78f31636c49279ce940afe60a453.tar.xz |
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')
-rw-r--r-- | include/linux/mfd/wm831x/core.h | 1 |
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 { struct mutex auxadc_lock; struct completion auxadc_done; + u16 auxadc_data; /* The WM831x has a security key blocking access to certain * registers. The mutex is taken by the accessors for locking |