kernel: qca-ssdk: update to 12.5 for kernel 6.6
[openwrt/staging/nbd.git] / package / kernel / qca-ssdk / patches / 101-hsl_phy-add-support-for-detection-PSGMII-PHY-mode.patch
1 From e3763fd77e41b2f2495672c6a5898d69892fbf9f Mon Sep 17 00:00:00 2001
2 From: Christian Marangi <ansuelsmth@gmail.com>
3 Date: Wed, 15 Nov 2023 00:57:41 +0100
4 Subject: [PATCH] hsl_phy: add support for detection PSGMII PHY mode
5
6 Add support for detection of PSGMII PHY mode to correctly detect qca807x
7 PHY upstream driver.
8
9 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
10 ---
11 src/hsl/phy/hsl_phy.c | 3 +++
12 1 file changed, 3 insertions(+)
13
14 --- a/src/hsl/phy/hsl_phy.c
15 +++ b/src/hsl/phy/hsl_phy.c
16 @@ -1322,6 +1322,9 @@ hsl_port_phydev_interface_mode_status_ge
17 case PHY_INTERFACE_MODE_10GKR:
18 *interface_mode_status = PORT_10GBASE_R;
19 break;
20 + case PHY_INTERFACE_MODE_PSGMII:
21 + *interface_mode_status = PHY_PSGMII_BASET;
22 + break;
23 case PHY_INTERFACE_MODE_QSGMII:
24 *interface_mode_status = PORT_QSGMII;
25 break;