From: Antti Palosaari Date: Fri, 13 May 2016 15:08:45 +0000 (-0300) Subject: [media] rtl28xxu: increase failed I2C msg repeat count to 3 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=734fd634a67e51cb58331d552ba410f8b4cc0049;p=linux-beck.git [media] rtl28xxu: increase failed I2C msg repeat count to 3 1 and 2 wasn't enough for mn88472 chip on Astrometa device, so increase it to 3. Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/usb/dvb-usb-v2/rtl28xxu.c b/drivers/media/usb/dvb-usb-v2/rtl28xxu.c index eb7af8cb8aca..6643762a9ff7 100644 --- a/drivers/media/usb/dvb-usb-v2/rtl28xxu.c +++ b/drivers/media/usb/dvb-usb-v2/rtl28xxu.c @@ -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;