[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1472061216-11111-1-git-send-email-xander.huff@ni.com>
Date: Wed, 24 Aug 2016 12:53:36 -0500
From: Xander Huff <xander.huff@...com>
To: f.fainelli@...il.com
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
brad.mouring@...com, Nathan Sullivan <nathan.sullivan@...com>,
xander.huff@...com
Subject: [PATCH] phy: request shared IRQ
From: Nathan Sullivan <nathan.sullivan@...com>
On hardware with multiple PHY devices hooked up to the same IRQ line, allow
them to share it.
Signed-off-by: Nathan Sullivan <nathan.sullivan@...com>
Signed-off-by: Xander Huff <xander.huff@...com>
Acked-by: Ben Shelton <ben.shelton@...com>
Acked-by: Jaeden Amero <jaeden.amero@...com>
---
drivers/net/phy/phy.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c
index c5dc2c36..0050531 100644
--- a/drivers/net/phy/phy.c
+++ b/drivers/net/phy/phy.c
@@ -722,8 +722,8 @@ phy_err:
int phy_start_interrupts(struct phy_device *phydev)
{
atomic_set(&phydev->irq_disable, 0);
- if (request_irq(phydev->irq, phy_interrupt, 0, "phy_interrupt",
- phydev) < 0) {
+ if (request_irq(phydev->irq, phy_interrupt, IRQF_SHARED,
+ "phy_interrupt", phydev) < 0) {
pr_warn("%s: Can't get IRQ %d (PHY)\n",
phydev->mdio.bus->name, phydev->irq);
phydev->irq = PHY_POLL;
--
1.9.1
Powered by blists - more mailing lists