--- zzzz-none-000/linux-3.10.107/drivers/net/phy/phy_device.c 2017-06-27 09:49:32.000000000 +0000 +++ vr9-7490-729/linux-3.10.107/drivers/net/phy/phy_device.c 2021-11-10 11:53:55.000000000 +0000 @@ -615,6 +615,9 @@ phydev->attached_dev->phydev = NULL; phydev->attached_dev = NULL; + if (phydev->drv && phydev->drv->detach) + phydev->drv->detach(phydev); + /* If the device had no specific driver before (i.e. - it * was using the generic driver), we unbind the device * from the generic driver so that there's a chance a