• Antti Palosaari's avatar
    [media] rtl28xxu: retry failed i2c messages · 4c7cad4b
    Antti Palosaari authored
    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: default avatarAntti Palosaari <crope@iki.fi>
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
    4c7cad4b
rtl28xxu.c 50.5 KB