|
@@ -465,19 +465,7 @@ static int ax88772_bind(struct usbnet *dev, struct usb_interface *intf)
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
|
|
- ret = asix_sw_reset(dev, AX_SWRESET_IPPD | AX_SWRESET_PRL);
|
|
|
|
- if (ret < 0)
|
|
|
|
- return ret;
|
|
|
|
-
|
|
|
|
- msleep(150);
|
|
|
|
-
|
|
|
|
- ret = asix_sw_reset(dev, AX_SWRESET_CLEAR);
|
|
|
|
- if (ret < 0)
|
|
|
|
- return ret;
|
|
|
|
-
|
|
|
|
- msleep(150);
|
|
|
|
-
|
|
|
|
- ret = asix_sw_reset(dev, embd_phy ? AX_SWRESET_IPRL : AX_SWRESET_PRTE);
|
|
|
|
|
|
+ ax88772_reset(dev);
|
|
|
|
|
|
/* Read PHYID register *AFTER* the PHY was reset properly */
|
|
/* Read PHYID register *AFTER* the PHY was reset properly */
|
|
phyid = asix_get_phyid(dev);
|
|
phyid = asix_get_phyid(dev);
|