[openwrt/openwrt] qca-ssdk: add patch to support detection of PSGMII mode for PHY

LEDE Commits lede-commits at lists.infradead.org
Sun Feb 11 12:18:06 PST 2024


ansuel pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/c8aded65c12abd527f88e71cd7e386cdbd07b8eb

commit c8aded65c12abd527f88e71cd7e386cdbd07b8eb
Author: Christian Marangi <ansuelsmth at gmail.com>
AuthorDate: Wed Nov 15 01:04:06 2023 +0100

    qca-ssdk: add patch to support detection of PSGMII mode for PHY
    
    If a PHY doesn't use the integrated driver, SSDK use poll the phydev to
    get the real PHY mode. qca807x use PSGMII as PHY mode and this specific
    mode is not detected in qca SSDK while used in the entire driver.
    
    Add support for it in the hsl_port_phydev_interface_mode_status_get
    function used to translate PHY mode to the internal SSDK value.
    
    Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
---
 ...add-support-for-detection-PSGMII-PHY-mode.patch | 25 ++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/package/kernel/qca-ssdk/patches/101-hsl_phy-add-support-for-detection-PSGMII-PHY-mode.patch b/package/kernel/qca-ssdk/patches/101-hsl_phy-add-support-for-detection-PSGMII-PHY-mode.patch
new file mode 100644
index 0000000000..c27902c4ce
--- /dev/null
+++ b/package/kernel/qca-ssdk/patches/101-hsl_phy-add-support-for-detection-PSGMII-PHY-mode.patch
@@ -0,0 +1,25 @@
+From e3763fd77e41b2f2495672c6a5898d69892fbf9f Mon Sep 17 00:00:00 2001
+From: Christian Marangi <ansuelsmth at gmail.com>
+Date: Wed, 15 Nov 2023 00:57:41 +0100
+Subject: [PATCH] hsl_phy: add support for detection PSGMII PHY mode
+
+Add support for detection of PSGMII PHY mode to correctly detect qca807x
+PHY upstream driver.
+
+Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
+---
+ src/hsl/phy/hsl_phy.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+--- a/src/hsl/phy/hsl_phy.c
++++ b/src/hsl/phy/hsl_phy.c
+@@ -1335,6 +1335,9 @@ hsl_port_phydev_interface_mode_status_ge
+ 		case PHY_INTERFACE_MODE_10GKR:
+ 			*interface_mode_status = PORT_10GBASE_R;
+ 			break;
++		case PHY_INTERFACE_MODE_PSGMII:
++			*interface_mode_status = PHY_PSGMII_BASET;
++			break;
+ 		case PHY_INTERFACE_MODE_QSGMII:
+ 			*interface_mode_status = PORT_QSGMII;
+ 			break;




More information about the lede-commits mailing list