Re: [PATCH 1/2] iio: adc: ti_am335x_adc: Protect FIFO1 from concurrent access

2016-08-17 Thread Vignesh R
On Monday 15 August 2016 09:15 PM, Jonathan Cameron wrote: > On 08/08/16 12:05, Vignesh R wrote: >> It is possible that two or more ADC channels can be simultaneously >> requested for raw samples, in which case there can be race in access to >> FIFO data resulting in loss of samples. >> If am335x

Re: [PATCH 1/2] iio: adc: ti_am335x_adc: Protect FIFO1 from concurrent access

2016-08-15 Thread Jonathan Cameron
On 08/08/16 12:05, Vignesh R wrote: > It is possible that two or more ADC channels can be simultaneously > requested for raw samples, in which case there can be race in access to > FIFO data resulting in loss of samples. > If am335x_tsc_se_set_once() is called again from tiadc_read_raw(), when > AD

Re: [PATCH 1/2] iio: adc: ti_am335x_adc: Protect FIFO1 from concurrent access

2016-08-09 Thread Vignesh R
On Tuesday 09 August 2016 03:21 PM, Matt Ranostay wrote: > On Mon, Aug 8, 2016 at 4:05 AM, Vignesh R wrote: >> It is possible that two or more ADC channels can be simultaneously >> requested for raw samples, in which case there can be race in access to >> FIFO data resulting in loss of samples.

Re: [PATCH 1/2] iio: adc: ti_am335x_adc: Protect FIFO1 from concurrent access

2016-08-09 Thread Matt Ranostay
On Mon, Aug 8, 2016 at 4:05 AM, Vignesh R wrote: > It is possible that two or more ADC channels can be simultaneously > requested for raw samples, in which case there can be race in access to > FIFO data resulting in loss of samples. > If am335x_tsc_se_set_once() is called again from tiadc_read_ra

[PATCH 1/2] iio: adc: ti_am335x_adc: Protect FIFO1 from concurrent access

2016-08-08 Thread Vignesh R
It is possible that two or more ADC channels can be simultaneously requested for raw samples, in which case there can be race in access to FIFO data resulting in loss of samples. If am335x_tsc_se_set_once() is called again from tiadc_read_raw(), when ADC is still acquired to sample one of the chann