Skip to contentSkip to conversation

cs89x0: Always report failure to request interrupt

PATCH Applied Mark Brown 2 participants 2 messages Jan 5, 2010 – Jan 7, 2010

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 cs89x0: Always report failure to request interrupt

A failure on request_irq() is always fatal but unlike other fatal errors it's only reported to the user if net_debug is set. Make the diagnostic unconditional and raise the priority so that errors are more obvious to the user.

---
 drivers/net/cs89x0.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/net/cs89x0.c +1 -2
index 5598677..9b5bbc6 100644
@@ -1325,8 +1325,7 @@ net_open(struct net_device *dev)
 		write_irq(dev, lp->chip_type, dev->irq);
 		ret = request_irq(dev->irq, net_interrupt, 0, dev->name, dev);
 		if (ret) {
-			if (net_debug)
-				printk(KERN_DEBUG "cs89x0: request_irq(%d) failed\n", dev->irq);
+			printk(KERN_ERR "cs89x0: request_irq(%d) failed\n", dev->irq);
 			goto bad_out;
 		}
 	}
Signature · 1 line
1.6.5.7
maintainer Applied
#1 lore raw

From: Mark Brown <[email protected]>
Date: Tue, 5 Jan 2010 11:16:50 +0000

Quoted 6 lines

A failure on request_irq() is always fatal but unlike other fatal errors it's only reported to the user if net_debug is set. Make the diagnostic unconditional and raise the priority so that errors are more obvious to the user.

Applied, thanks.