[linux-dvb] 2.6.20 -> saa i2c messages

e9hack e9hack at googlemail.com
Fri Feb 16 20:06:03 CET 2007


Hi Udo,

can you please add the following patch? It may be interesting if the
saa7146 does hit the interrupt, but the interrupt isn't deliver to the
handler.

- Hartmut

--- a/linux/drivers/media/common/saa7146_i2c.c  Fri Feb 16 07:35:15 2007
-0200
+++ b/linux/drivers/media/common/saa7146_i2c.c  Fri Feb 16 19:58:07 2007
+0100
@@ -197,12 +197,14 @@ static int saa7146_i2c_writeout(struct s
                timeout = HZ/100 + 1; /* 10ms */
                timeout = wait_event_interruptible_timeout(dev->i2c_wq,
dev->i2c_op == 0, timeout);
                if (timeout == -ERESTARTSYS || dev->i2c_op) {
+                       u32 isr = saa7146_read(dev, ISR);
                        SAA7146_IER_DISABLE(dev, MASK_16|MASK_17);
                        SAA7146_ISR_CLEAR(dev, MASK_16|MASK_17);
                        if (timeout == -ERESTARTSYS)
                                /* a signal arrived */
                                return -ERESTARTSYS;

+                       printk(KERN_WARNING "saa7146_i2c_writeout: ISR =
%08x\n", isr);
                        printk(KERN_WARNING "saa7146_i2c_writeout: timed
out waiting for end of xfer\n");
                        return -EIO;




More information about the linux-dvb mailing list