staging: iio: adc: increase delay before reading config REG
Venkat Reddy Talla [Fri, 8 May 2015 03:56:14 +0000 (08:56 +0530)]
Increase delay before reading ads1015 config register to know
single-shot conversion is completed or not.

Bug 1643119

Change-Id: Ie7e1a1acbc7b4911f8a1eed7811732c7229013d0
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/740449
(cherry picked from commit 0894c73a224d30b0ac01f18aab471634922ff15f)
Reviewed-on: http://git-master/r/745013
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

drivers/staging/iio/adc/ads1015.c

index 47a1480..7402c5b 100644 (file)
@@ -184,7 +184,7 @@ static int ads1015_start_conversion(struct ads1015 *adc, int chan)
 
        /* Wait for conversion */
        do {
-               udelay(200);
+               udelay(800);
                ret = ads1015_read(adc->rmap, ADS1015_CONFIG_REG, &reg_val);
                if (ret < 0) {
                        dev_err(adc->dev, "Config reg read failed %d\n", ret);