Revert "Revert "usbnet: smsc95xx: Don't clear read-only PHY interrupt""
authorDom Cobley <popcornmix@gmail.com>
Mon, 5 Sep 2022 11:45:06 +0000 (12:45 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 5 Sep 2022 11:45:06 +0000 (12:45 +0100)
This reverts commit b50b2815045cbc86e3b34178e9df69a988991a61.

drivers/net/usb/smsc95xx.c

index 64ad4f1..220026c 100644 (file)
@@ -583,10 +583,6 @@ static int smsc95xx_link_reset(struct usbnet *dev)
        unsigned long flags;
        int ret;
 
-       ret = smsc95xx_write_reg(dev, INT_STS, INT_STS_CLEAR_ALL_);
-       if (ret < 0)
-               return ret;
-
        spin_lock_irqsave(&pdata->mac_cr_lock, flags);
        if (pdata->phydev->duplex != DUPLEX_FULL) {
                pdata->mac_cr &= ~MAC_CR_FDPX_;