The patch number 11244 was added via Mauro Carvalho Chehab <[email protected]>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        Linux Media Mailing List <[email protected]>

------

From: Alan Cox  <[email protected]>
[PATCH] pluto2: silence spew of card hung up messages


If the card is ejected on some systems you get a spew of messages as other
shared IRQ devices interrupt between the card eject and the card IRQ
disable.

We don't need to spew them all out

Closes #7472

Signed-off-by: Alan Cox <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>


---

 linux/drivers/media/dvb/pluto2/pluto2.c |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff -r 0b4292a3badf -r b1596c6517c9 linux/drivers/media/dvb/pluto2/pluto2.c
--- a/linux/drivers/media/dvb/pluto2/pluto2.c   Thu Mar 26 20:44:38 2009 +0000
+++ b/linux/drivers/media/dvb/pluto2/pluto2.c   Thu Mar 26 20:47:48 2009 +0000
@@ -116,6 +116,7 @@ struct pluto {
 
        /* irq */
        unsigned int overflow;
+       unsigned int dead;
 
        /* dma */
        dma_addr_t dma_addr;
@@ -344,8 +345,10 @@ static irqreturn_t pluto_irq(int irq, vo
                return IRQ_NONE;
 
        if (tscr == 0xffffffff) {
-               // FIXME: maybe recover somehow
-               dev_err(&pluto->pdev->dev, "card hung up :(\n");
+               if (pluto->dead == 0)
+                       dev_err(&pluto->pdev->dev, "card has hung or been 
ejected.\n");
+               /* It's dead Jim */
+               pluto->dead = 1;
                return IRQ_HANDLED;
        }
 


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/b1596c6517c925abd1e683e86592af1aedf9de06

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to