]> git.baikalelectronics.ru Git - kernel.git/commit
[media] rtl28xxu: retry failed i2c messages
authorAntti Palosaari <crope@iki.fi>
Thu, 7 Jan 2016 08:35:21 +0000 (06:35 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 1 Feb 2016 11:20:24 +0000 (09:20 -0200)
commit3268763bcf2d675517ea2229c5d4f179b3b8ada1
tree35cad63817bf88a1281e9905a1552cdd58449215
parentd35ec8dca37977c259a11c048312e80dc2c0fce2
[media] rtl28xxu: retry failed i2c messages

Sometimes i2c transfer fails. That happens especially when large
amount of data is written sequentially eg. firmware download.
Problem arises with both integrated rtl2832 demod and external
mn88472 demod, which is clear indicator it is busy i2c bus issue.
Use i2c core retry logic in order fix the issue by repeating failed
message. Another solution which also works is to add ~100us delay
between i2c messages - but repeating sounds more elegant and does
not cause any extra delay for success cases.

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