Re: 2.6.20 -> saa i2c messages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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;


_______________________________________________
linux-dvb mailing list
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux