[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1465920962-24946-1-git-send-email-jeremy.linton@arm.com>
Date: Tue, 14 Jun 2016 11:16:02 -0500
From: Jeremy Linton <jeremy.linton@....com>
To: netdev@...r.kernel.org
Cc: steve.glendinning@...well.net
Subject: [PATCH] net: smsc911x: If PHY doesn't have an interrupt then POLL
If the interrupt configuration isn't set and we are using the
internal phy, then we need to poll the phy to reliably detect
phy state changes.
Signed-off-by: Jeremy Linton <jeremy.linton@....com>
---
drivers/net/ethernet/smsc/smsc911x.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/ethernet/smsc/smsc911x.c b/drivers/net/ethernet/smsc/smsc911x.c
index 8af2556..369dc7d 100644
--- a/drivers/net/ethernet/smsc/smsc911x.c
+++ b/drivers/net/ethernet/smsc/smsc911x.c
@@ -1020,6 +1020,9 @@ static int smsc911x_mii_probe(struct net_device *dev)
return -ENODEV;
}
+ if ((!phydev->irq) && (!pdata->using_extphy))
+ phydev->irq = PHY_POLL;
+
SMSC_TRACE(pdata, probe, "PHY: addr %d, phy_id 0x%08X",
phydev->mdio.addr, phydev->phy_id);
--
2.5.5
Powered by blists - more mailing lists