iio: adc: sc27xx: Add ADC data conversion timeout
authorFreeman Liu <freeman.liu@unisoc.com>
Fri, 9 Nov 2018 03:25:31 +0000 (11:25 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Fri, 16 Nov 2018 18:32:32 +0000 (18:32 +0000)
commit750ac07eb2c85617b5522402a99b4b408cd0b1b3
tree645dbd93370a8dcd6e3f17164316ad96d4d05379
parentbefa9f6a3e1f00df0cff9d991650dc8d541fb730
iio: adc: sc27xx: Add ADC data conversion timeout

Sometimes the ADC controller met some problems, and it will not complete
the data conversion, that will can not wake up the read process any more
to block users. So we should add one maximum conversion time to avoid
this issue.

Signed-off-by: Freeman Liu <freeman.liu@unisoc.com>
Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/sc27xx_adc.c