diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-14 02:18:12 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-14 02:18:12 -0200 |
commit | 50a5defff418272f0934301f540160d172b46c36 (patch) | |
tree | 8cc091512468462aa4ec6dd8db0eff5d1fe7c480 /linux/drivers/media/dvb/b2c2/flexcop-i2c.c | |
parent | 427b70d46df23ba54523af265fd2bc28d061e435 (diff) | |
parent | af2c8347ec518cf5ff646d2bf560206780775795 (diff) | |
download | mediapointer-dvb-s2-50a5defff418272f0934301f540160d172b46c36.tar.gz mediapointer-dvb-s2-50a5defff418272f0934301f540160d172b46c36.tar.bz2 |
merge: http://www.linuxtv.org/hg/~hverkuil/v4l-dvb-ng
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media/dvb/b2c2/flexcop-i2c.c')
-rw-r--r-- | linux/drivers/media/dvb/b2c2/flexcop-i2c.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/b2c2/flexcop-i2c.c b/linux/drivers/media/dvb/b2c2/flexcop-i2c.c index 05635c453..01d27613f 100644 --- a/linux/drivers/media/dvb/b2c2/flexcop-i2c.c +++ b/linux/drivers/media/dvb/b2c2/flexcop-i2c.c @@ -47,9 +47,13 @@ static int flexcop_i2c_read4(struct flexcop_i2c_adapter *i2c, int len = r100.tw_sm_c_100.total_bytes, /* remember total_bytes is buflen-1 */ ret; - r100.tw_sm_c_100.no_base_addr_ack_error = i2c->no_base_addr; ret = flexcop_i2c_operation(i2c->fc, &r100); if (ret != 0) { + deb_i2c("Retrying operation\n"); + r100.tw_sm_c_100.no_base_addr_ack_error = i2c->no_base_addr; + ret = flexcop_i2c_operation(i2c->fc, &r100); + } + if (ret != 0) { deb_i2c("read failed. %d\n", ret); return ret; } |