[media] rtl28xxu: increase failed I2C msg repeat count to 3
authorAntti Palosaari <crope@iki.fi>
Fri, 13 May 2016 15:08:45 +0000 (12:08 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 7 Jun 2016 18:39:46 +0000 (15:39 -0300)
1 and 2 wasn't enough for mn88472 chip on Astrometa device,
so increase it to 3.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/dvb-usb-v2/rtl28xxu.c

index eb7af8c..6643762 100644 (file)
@@ -624,7 +624,7 @@ static int rtl28xxu_identify_state(struct dvb_usb_device *d, const char **name)
        dev_dbg(&d->intf->dev, "chip_id=%u\n", dev->chip_id);
 
        /* Retry failed I2C messages */
-       d->i2c_adap.retries = 1;
+       d->i2c_adap.retries = 3;
        d->i2c_adap.timeout = msecs_to_jiffies(10);
 
        return WARM;