1 --- a/include/linux/phy.h
2 +++ b/include/linux/phy.h
3 @@ -555,6 +555,12 @@ struct phy_driver {
4 /* Determines the negotiated speed and duplex */
5 int (*read_status)(struct phy_device *phydev);
8 + * Update the value in phydev->link to reflect the
11 + int (*update_link)(struct phy_device *phydev);
13 /* Clears any pending interrupts */
14 int (*ack_interrupt)(struct phy_device *phydev);
16 --- a/drivers/net/phy/phy_device.c
17 +++ b/drivers/net/phy/phy_device.c
18 @@ -1577,6 +1577,9 @@ int genphy_update_link(struct phy_device
22 + if (phydev->drv && phydev->drv->update_link)
23 + return phydev->drv->update_link(phydev);
25 /* The link state is latched low so that momentary link
26 * drops can be detected. Do not double-read the status
27 * in polling mode to detect such short link drops.