[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1994ef1f22c99cf021b0e096b12509f29ac400d5.1401920694.git.andrew.ruder@elecsyscorp.com>
Date: Wed, 4 Jun 2014 17:28:44 -0500
From: Andrew Ruder <andrew.ruder@...csyscorp.com>
To: netdev@...r.kernel.org
Cc: Andrew Ruder <andrew.ruder@...csyscorp.com>,
Joseph CHANG <josright123@...il.com>
Subject: [PATCH 1/6] dm9000: acquire irq flags from device tree
The DM9000 supports both active high interrupts and active low interrupts.
This is configured via the attached EEPROM. In the device-tree case, make sure
that the DM9000 driver passes the correct flags to request_irq.
Signed-off-by: Andrew Ruder <andrew.ruder@...csyscorp.com>
---
drivers/net/ethernet/davicom/dm9000.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/ethernet/davicom/dm9000.c b/drivers/net/ethernet/davicom/dm9000.c
index a1a2b40..9d44c3f 100644
--- a/drivers/net/ethernet/davicom/dm9000.c
+++ b/drivers/net/ethernet/davicom/dm9000.c
@@ -1292,6 +1292,9 @@ dm9000_open(struct net_device *dev)
* may work, and tell the user that this is a problem */
if (irqflags == IRQF_TRIGGER_NONE)
+ irqflags = irq_get_trigger_type(dev->irq);
+
+ if (irqflags == IRQF_TRIGGER_NONE)
dev_warn(db->dev, "WARNING: no IRQ resource flags set.\n");
irqflags |= IRQF_SHARED;
--
1.9.0.rc3.12.gbc97e2d
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists