kernel: bump 5.15 to 5.15.132
[openwrt/openwrt.git] / target / linux / generic / backport-5.15 / 746-v5.16-04-net-phy-at803x-better-describe-debug-regs.patch
index 9c28a893f16c1d524b019fc4a704e6a029144115..89e9b3f66231e138d0c520d421254d4a9ecce9f6 100644 (file)
@@ -16,8 +16,8 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
 --- a/drivers/net/phy/at803x.c
 +++ b/drivers/net/phy/at803x.c
 @@ -86,12 +86,12 @@
- #define AT803X_PSSR                   0x11    /*PHY-Specific Status Register*/
- #define AT803X_PSSR_MR_AN_COMPLETE    0x0200
+ #define AT803X_PSSR                           0x11    /*PHY-Specific Status Register*/
+ #define AT803X_PSSR_MR_AN_COMPLETE            0x0200
  
 -#define AT803X_DEBUG_REG_0                    0x00
 +#define AT803X_DEBUG_ANALOG_TEST_CTRL         0x00
@@ -39,7 +39,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
  #define   AT803X_DEBUG_GATE_CLK_IN1000                BIT(6)
  
  #define AT803X_DEBUG_REG_1F                   0x1F
-@@ -274,25 +274,25 @@ static int at803x_read_page(struct phy_d
+@@ -284,25 +284,25 @@ static int at803x_read_page(struct phy_d
  
  static int at803x_enable_rx_delay(struct phy_device *phydev)
  {
@@ -69,7 +69,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
                                     AT803X_DEBUG_TX_CLK_DLY_EN, 0);
  }
  
-@@ -1208,9 +1208,9 @@ static int qca83xx_config_init(struct ph
+@@ -1292,9 +1292,9 @@ static int qca83xx_config_init(struct ph
        switch (switch_revision) {
        case 1:
                /* For 100M waveform */
@@ -81,7 +81,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
                break;
  
        case 2:
-@@ -1218,8 +1218,8 @@ static int qca83xx_config_init(struct ph
+@@ -1302,8 +1302,8 @@ static int qca83xx_config_init(struct ph
                fallthrough;
        case 4:
                phy_write_mmd(phydev, MDIO_MMD_PCS, MDIO_AZ_DEBUG, 0x803f);
@@ -92,7 +92,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
                at803x_debug_reg_write(phydev, AT803X_DEBUG_REG_3C, 0x6000);
                break;
        }
-@@ -1230,7 +1230,7 @@ static int qca83xx_config_init(struct ph
+@@ -1314,7 +1314,7 @@ static int qca83xx_config_init(struct ph
         */
        if (phydev->drv->phy_id == QCA8327_A_PHY_ID ||
            phydev->drv->phy_id == QCA8327_B_PHY_ID)
@@ -101,7 +101,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
                                      QCA8327_DEBUG_MANU_CTRL_EN, 0);
  
        /* Following original QCA sourcecode set port to prefer master */
-@@ -1248,12 +1248,12 @@ static void qca83xx_link_change_notify(s
+@@ -1332,12 +1332,12 @@ static void qca83xx_link_change_notify(s
        /* Set DAC Amplitude adjustment to +6% for 100m on link running */
        if (phydev->state == PHY_RUNNING) {
                if (phydev->speed == SPEED_100)
@@ -116,7 +116,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
                                      QCA8327_DEBUG_MANU_CTRL_EN, 0);
        }
  }
-@@ -1300,7 +1300,7 @@ static int qca83xx_suspend(struct phy_de
+@@ -1384,7 +1384,7 @@ static int qca83xx_suspend(struct phy_de
                phy_modify(phydev, MII_BMCR, mask, 0);
        }