summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/sp887x.c
diff options
context:
space:
mode:
authorHolger Waechtler <devnull@localhost>2003-09-07 15:40:35 +0000
committerHolger Waechtler <devnull@localhost>2003-09-07 15:40:35 +0000
commitc00d9912bf6afef52f9eef0fb106b1b22a3276e9 (patch)
tree5d1a803ba1a90ed21c0779f8f1f9b92104b8c387 /linux/drivers/media/dvb/frontends/sp887x.c
parent14d45b2320ee31b30bf3e1d33d2c78c2cc68d596 (diff)
downloadmediapointer-dvb-s2-c00d9912bf6afef52f9eef0fb106b1b22a3276e9.tar.gz
mediapointer-dvb-s2-c00d9912bf6afef52f9eef0fb106b1b22a3276e9.tar.bz2
- apply Avermedia DVB-T related patches contributed by Mark Edwards <mark@edwards.homelinux.net>
- add a workaround for the bogus no-ack returvalue of the kernel-i2c bitbanging driver - add sp887x.o to the Makefile
Diffstat (limited to 'linux/drivers/media/dvb/frontends/sp887x.c')
-rw-r--r--linux/drivers/media/dvb/frontends/sp887x.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/frontends/sp887x.c b/linux/drivers/media/dvb/frontends/sp887x.c
index 337c61ea3..664600b53 100644
--- a/linux/drivers/media/dvb/frontends/sp887x.c
+++ b/linux/drivers/media/dvb/frontends/sp887x.c
@@ -75,7 +75,9 @@ int sp887x_writereg (struct dvb_frontend *fe, u16 reg, u16 data)
/**
* in case of soft reset we ignore ACK errors...
*/
- if (!(reg == 0xf1a && data == 0x000 && ret == -EREMOTEIO)) {
+ if (!(reg == 0xf1a && data == 0x000 &&
+ (ret == -EREMOTEIO || ret == -EFAULT)))
+ {
printk("%s: writereg error "
"(reg %03x, data %03x, ret == %i)\n",
__FUNCTION__, reg & 0xffff, data & 0xffff, ret);