ipq806x: really fix aliases node for Qualcomm IPQ8064/DB149
[openwrt/staging/rmilecki.git] / target / linux / ipq40xx / patches-5.4 / 706-ar40xx-abort-probe-on-missig-phy.patch
index cda05bfb9f603d5d26b9ee0d34a60803a1783aa2..19474bff0d0d669197c6bb6a19494c02f9e6ca28 100644 (file)
@@ -1,16 +1,5 @@
 --- a/drivers/net/phy/ar40xx.c
 +++ b/drivers/net/phy/ar40xx.c
-@@ -1808,8 +1808,8 @@ ar40xx_phy_probe(struct phy_device *phyd
-       if (phydev->mdio.addr == 0)
-               ar40xx_priv->phy = phydev;
--      phydev->supported |= SUPPORTED_1000baseT_Full;
--      phydev->advertising |= ADVERTISED_1000baseT_Full;
-+      phy_set_max_speed(phydev, SPEED_1000);
-+      linkmode_copy(phydev->advertising, phydev->supported);
-       return 0;
- }
 @@ -2021,6 +2021,12 @@ static int ar40xx_probe(struct platform_
        /* register switch */
        swdev = &priv->dev;