diff mbox series

parisc: Ratelimit dino stuck interrupt warnings

Message ID 20181007212845.GA9396@ls3530.fritz.box (mailing list archive)
State Accepted, archived
Headers show
Series parisc: Ratelimit dino stuck interrupt warnings | expand

Commit Message

Helge Deller Oct. 7, 2018, 9:28 p.m. UTC
While playing with qemu with an emulated RT8139cp NIC, I faced lots of
the following warnings:
Dino 0x00810000: stuck interrupt 2

This patch ratelimits this warning and reports back that the IRQ was
handled.

Signed-off-by: Helge Deller <deller@gmx.de>
diff mbox series

Patch

diff --git a/drivers/parisc/dino.c b/drivers/parisc/dino.c
index 0b3fb99d9b89..1eb122d8f2a4 100644
--- a/drivers/parisc/dino.c
+++ b/drivers/parisc/dino.c
@@ -396,9 +396,8 @@  static irqreturn_t dino_isr(int irq, void *intr_dev)
 	if (mask) {
 		if (--ilr_loop > 0)
 			goto ilr_again;
-		printk(KERN_ERR "Dino 0x%p: stuck interrupt %d\n", 
+		pr_warn_ratelimited("Dino 0x%px: stuck interrupt %d\n",
 		       dino_dev->hba.base_addr, mask);
-		return IRQ_NONE;
 	}
 	return IRQ_HANDLED;
 }