kernel: bump 4.19 to 4.19.34
[openwrt/openwrt.git] / target / linux / generic / hack-4.19 / 702-phy_add_aneg_done_function.patch
index 85ffa1ac1bfe5fb67c99b89d88d10d05b7a35dcc..6fbcd43d66bf398a4757eee9ff1d4a162bd4fc78 100644 (file)
@@ -22,6 +22,6 @@
 +      if (phydev->drv && phydev->drv->update_link)
 +              return phydev->drv->update_link(phydev);
 +
-       /* Do a fake read */
-       status = phy_read(phydev, MII_BMSR);
-       if (status < 0)
+       /* The link state is latched low so that momentary link
+        * drops can be detected. Do not double-read the status
+        * in polling mode to detect such short link drops.