Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0b61dca2 authored by Alan Cox's avatar Alan Cox Committed by Mauro Carvalho Chehab
Browse files

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 #7472

Signed-off-by: default avatarAlan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent fbc0ae20
Loading
Loading
Loading
Loading
+5 −2
Original line number Original line Diff line number Diff line
@@ -116,6 +116,7 @@ struct pluto {


	/* irq */
	/* irq */
	unsigned int overflow;
	unsigned int overflow;
	unsigned int dead;


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


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