X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Fbcm27xx%2Fpatches-5.15%2F950-0700-net-phy-lan87xx-Decrease-phy-polling-rate.patch;h=3abac8ec25941047c576ef24411e0b513668e185;hb=ca5c695a4522091234026e22e8336f05d65602ba;hp=6693f86aea1736c567108fddf7cbc7c1bbc57018;hpb=d1163fd13f6498826d202f0b58cedf32d7891d52;p=openwrt%2Fstaging%2Fdedeckeh.git diff --git a/target/linux/bcm27xx/patches-5.15/950-0700-net-phy-lan87xx-Decrease-phy-polling-rate.patch b/target/linux/bcm27xx/patches-5.15/950-0700-net-phy-lan87xx-Decrease-phy-polling-rate.patch index 6693f86aea..3abac8ec25 100644 --- a/target/linux/bcm27xx/patches-5.15/950-0700-net-phy-lan87xx-Decrease-phy-polling-rate.patch +++ b/target/linux/bcm27xx/patches-5.15/950-0700-net-phy-lan87xx-Decrease-phy-polling-rate.patch @@ -18,16 +18,16 @@ Signed-off-by: Phil Elwell --- a/drivers/net/phy/smsc.c +++ b/drivers/net/phy/smsc.c -@@ -218,6 +218,8 @@ static int lan87xx_read_status(struct ph +@@ -220,6 +220,8 @@ static int lan87xx_read_status(struct ph int err = genphy_read_status(phydev); - if (!phydev->link && priv->energy_enable) { + if (!phydev->link && priv->energy_enable && phydev->irq == PHY_POLL) { + int energy_detected; + /* Disable EDPD to wake up PHY */ int rc = phy_read(phydev, MII_LAN83C185_CTRL_STATUS); if (rc < 0) -@@ -233,7 +235,7 @@ static int lan87xx_read_status(struct ph +@@ -235,7 +237,7 @@ static int lan87xx_read_status(struct ph */ read_poll_timeout(phy_read, rc, rc & MII_LAN83C185_ENERGYON || rc < 0, @@ -36,7 +36,7 @@ Signed-off-by: Phil Elwell MII_LAN83C185_CTRL_STATUS); if (rc < 0) return rc; -@@ -243,10 +245,16 @@ static int lan87xx_read_status(struct ph +@@ -245,10 +247,16 @@ static int lan87xx_read_status(struct ph if (rc < 0) return rc;