diff options
author | Paul Fertser <fercerpav@gmail.com> | 2009-07-27 16:58:48 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2009-09-17 03:46:53 -0400 |
commit | bd8ef10261d7ae92ad2b4925afd2b56f46175c47 (patch) | |
tree | f88c4992b1473ff5b72dc5d0b97522bf964363d4 /include/linux/mfd | |
parent | ed52e62ebec9e703eb0b69704feaf1b6e847d882 (diff) |
mfd: revise locking for pcf50633 ADC
Current implementation is prone to races, this patch attempts to remove all
but one (in pcf50633_adc_sync_read).
The idea is that we need to guard the queue access only on inserting and
removing items. If we insert and there're no more items in the queue it
means that the last irq already happened and we need to trigger ADC
manually. If not, then the next conversion will be triggered by the irq
handler upon completion of the previous.
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/linux/mfd')
0 files changed, 0 insertions, 0 deletions