Message ID | 95ff93fffa161a7a96604b4dfe2be933fe740785.1651574194.git.lukas@wunner.de |
---|---|
State | New |
Headers | show |
Series | [net-next,v2,1/7] usbnet: Run unregister_netdev() before unbind() again | expand |
diff --git a/drivers/net/phy/smsc.c b/drivers/net/phy/smsc.c index a521d48b22a7..35bff7fd234c 100644 --- a/drivers/net/phy/smsc.c +++ b/drivers/net/phy/smsc.c @@ -91,7 +91,9 @@ static irqreturn_t smsc_phy_handle_interrupt(struct phy_device *phydev) irq_status = phy_read(phydev, MII_LAN83C185_ISF); if (irq_status < 0) { - phy_error(phydev); + if (irq_status != -ENODEV) + phy_error(phydev); + return IRQ_NONE; }