Skip to content

Commit 0b61dca

Browse files
Alan-CoxMauro Carvalho Chehab
authored andcommitted
V4L/DVB (11244): 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 raspberrypi#7472 Signed-off-by: Alan Cox <alan@lxorguk.ukuu.org.uk> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
1 parent fbc0ae2 commit 0b61dca

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎drivers/media/dvb/pluto2/pluto2.c‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ struct pluto {
116116

117117
/* irq */
118118
unsigned int overflow;
119+
unsigned int dead;
119120

120121
/* dma */
121122
dma_addr_t dma_addr;
@@ -336,8 +337,10 @@ static irqreturn_t pluto_irq(int irq, void *dev_id)
336337
return IRQ_NONE;
337338

338339
if (tscr == 0xffffffff) {
339-
// FIXME: maybe recover somehow
340-
dev_err(&pluto->pdev->dev, "card hung up :(\n");
340+
if (pluto->dead == 0)
341+
dev_err(&pluto->pdev->dev, "card has hung or been ejected.\n");
342+
/* It's dead Jim */
343+
pluto->dead = 1;
341344
return IRQ_HANDLED;
342345
}
343346

0 commit comments

Comments
 (0)