kernel: update kernel 4.9 to 4.9.37
[openwrt/openwrt.git] / target / linux / mvebu / patches-4.9 / 473-fix-marvell-phy-initialization-issues.patch
index c48195150f47b633c647404288e4f6a4dde781dc..eca7e121e033b13af557fa4dc80e93ce792c57e9 100644 (file)
@@ -49,13 +49,3 @@ Signed-off-by: Marko Ratkaj <marko.ratkaj@sartura.hr>
                i = phy_write(phydev, MII_MARVELL_PHY_PAGE, saved_page);
                if (ret == 0)
                        ret = i;
-@@ -1200,7 +1198,8 @@ static int marvell_read_status(struct ph
-       int err;
-       /* Check the fiber mode first */
--      if (phydev->supported & SUPPORTED_FIBRE) {
-+      if (phydev->supported & SUPPORTED_FIBRE &&
-+          phydev->interface != PHY_INTERFACE_MODE_SGMII) {
-               err = phy_write(phydev, MII_MARVELL_PHY_PAGE, MII_M1111_FIBER);
-               if (err < 0)
-                       goto error;