summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/pluto2
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-03-26 20:47:48 +0000
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-26 20:47:48 +0000
commit03ddd50e8bf14d07eacd58ead6b8fd9236ef0982 (patch)
tree15213e334ce291149571def0be681aac59ea2189 /linux/drivers/media/dvb/pluto2
parent83e8e34fdce5fd6d2092b12a4a0d3b95833635b3 (diff)
downloadmediapointer-dvb-s2-03ddd50e8bf14d07eacd58ead6b8fd9236ef0982.tar.gz
mediapointer-dvb-s2-03ddd50e8bf14d07eacd58ead6b8fd9236ef0982.tar.bz2
[PATCH] pluto2: silence spew of card hung up messages
From: Alan Cox <alan@lxorguk.ukuu.org.uk> 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 <alan@lxorguk.ukuu.org.uk> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media/dvb/pluto2')
-rw-r--r--linux/drivers/media/dvb/pluto2/pluto2.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/pluto2/pluto2.c b/linux/drivers/media/dvb/pluto2/pluto2.c
index 8522757a5..b27073216 100644
--- a/linux/drivers/media/dvb/pluto2/pluto2.c
+++ b/linux/drivers/media/dvb/pluto2/pluto2.c
@@ -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, void *dev_id)
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;
}