]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
kernel: net: phy: mxl-gpy: replace patch with upstream commit
authorDaniel Golle <daniel@makrotopia.org>
Mon, 12 Jan 2026 03:25:54 +0000 (03:25 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 12 Jan 2026 03:27:25 +0000 (03:27 +0000)
Replace accepted patch with backported upstream commit and refresh
patches.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
target/linux/generic/backport-6.12/730-11-v7.0-net-phy-mxl-gpy-implement-SGMII-in-band-configuratio.patch [moved from target/linux/generic/pending-6.12/721-net-phy-mxl-gpy-implement-SGMII-in-band-configuratio.patch with 94% similarity]
target/linux/generic/backport-6.12/735-v6.13-net-phy-avoid-undefined-behavior-in-_led_polarity_se.patch

similarity index 94%
rename from target/linux/generic/pending-6.12/721-net-phy-mxl-gpy-implement-SGMII-in-band-configuratio.patch
rename to target/linux/generic/backport-6.12/730-11-v7.0-net-phy-mxl-gpy-implement-SGMII-in-band-configuratio.patch
index 8d4d2dc6cc6a90e9d76110952f6b3d24e3e0ae2f..0e99bfe7c550f4553d643114aa72fe249e70fb0d 100644 (file)
@@ -1,16 +1,18 @@
-From aaf0094daf0d7a0e4599280341710c98ba1e9d35 Mon Sep 17 00:00:00 2001
+From 9da9633f2f02df7da67ab3b6f84eda4956ae1c5a Mon Sep 17 00:00:00 2001
 From: Daniel Golle <daniel@makrotopia.org>
-Date: Wed, 7 Jan 2026 13:48:16 +0000
+Date: Wed, 7 Jan 2026 15:39:16 +0000
 Subject: [PATCH] net: phy: mxl-gpy: implement SGMII in-band configuration
 
 SGMII in-band autonegotiation was previously kept untouched (and restored
 after switching back from 2500Base-X to SGMII). Now that the kernel offers
-a way to announce in-band capabilities and enable/disable in-band AN,
+a way to announce in-band capabilities and nable/disable in-band AN,
 implement the .inband_caps and .config_inband driver ops.
 This moves the responsibility to configure SGMII in-band AN from the PHY
 driver to phylink.
 
 Signed-off-by: Daniel Golle <daniel@makrotopia.org>
+Link: https://patch.msgid.link/70f07e46dd96e239a9711e6073e8c04c1d8672d4.1767800226.git.daniel@makrotopia.org
+Signed-off-by: Jakub Kicinski <kuba@kernel.org>
 ---
  drivers/net/phy/mxl-gpy.c | 61 ++++++++++++++++++++++++++++++---------
  1 file changed, 47 insertions(+), 14 deletions(-)
@@ -39,7 +41,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
        }
  
 @@ -1022,6 +1008,27 @@ static int gpy_led_polarity_set(struct p
-       return -EINVAL;
+       unreachable();
  }
  
 +static unsigned int gpy_inband_caps(struct phy_device *phydev,
index 48f531d7097bd0086f2ca87a6e5eb84577a381eb..622d2c3b540baa6dfb02b86d6b9301d7f7bf7a2d 100644 (file)
@@ -53,7 +53,7 @@ Signed-off-by: Jakub Kicinski <kuba@kernel.org>
  static struct phy_driver xway_gphy[] = {
 --- a/drivers/net/phy/mxl-gpy.c
 +++ b/drivers/net/phy/mxl-gpy.c
-@@ -1019,7 +1019,7 @@ static int gpy_led_polarity_set(struct p
+@@ -1005,7 +1005,7 @@ static int gpy_led_polarity_set(struct p
        if (force_active_high)
                return phy_clear_bits(phydev, PHY_LED, PHY_LED_POLARITY(index));
  
@@ -61,4 +61,4 @@ Signed-off-by: Jakub Kicinski <kuba@kernel.org>
 +      return -EINVAL;
  }
  
- static struct phy_driver gpy_drivers[] = {
+ static unsigned int gpy_inband_caps(struct phy_device *phydev,