]> rtime.felk.cvut.cz Git - linux-imx.git/commit
iio: ti_am335x_adc: Fix wrong samples received on 1st read
authorPatil, Rachna <rachna@ti.com>
Sat, 20 Jul 2013 16:27:00 +0000 (17:27 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sun, 21 Jul 2013 17:27:35 +0000 (18:27 +0100)
commitb1451e546899bc8f450773b2af02e0cd000cf1fa
treeb4147d4c31a3572c0c6c427fcd1ae8dfc7401c6c
parenta1a8e1dc111d6f05e7164e851e58219d428359e1
iio: ti_am335x_adc: Fix wrong samples received on 1st read

Previously we tried to read data form ADC even before ADC sequencer
finished sampling. This led to wrong samples.
We now wait on ADC status register idle bit to be set.

Signed-off-by: Patil, Rachna <rachna@ti.com>
Signed-off-by: Zubair Lutfullah <zubair.lutfullah@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/ti_am335x_adc.c
include/linux/mfd/ti_am335x_tscadc.h