aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux-6.6/linux-yocto-6.6/0015-amd-xgbe-AN-force-modeset-to-10GKR-for-resetting-HW.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux-6.6/linux-yocto-6.6/0015-amd-xgbe-AN-force-modeset-to-10GKR-for-resetting-HW.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux-6.6/linux-yocto-6.6/0015-amd-xgbe-AN-force-modeset-to-10GKR-for-resetting-HW.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux-6.6/linux-yocto-6.6/0015-amd-xgbe-AN-force-modeset-to-10GKR-for-resetting-HW.patch b/meta-amd-bsp/recipes-kernel/linux-6.6/linux-yocto-6.6/0015-amd-xgbe-AN-force-modeset-to-10GKR-for-resetting-HW.patch
new file mode 100644
index 00000000..06bcb2a9
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux-6.6/linux-yocto-6.6/0015-amd-xgbe-AN-force-modeset-to-10GKR-for-resetting-HW.patch
@@ -0,0 +1,33 @@
+From bfcc3c213d95be30209ef9666c530f26cf60fc1f Mon Sep 17 00:00:00 2001
+From: Sudheesh Mavila <sudheesh.mavila@amd.com>
+Date: Sat, 22 Apr 2023 14:33:19 +0530
+Subject: [PATCH 15/31] amd-xgbe: AN force modeset to 10GKR for resetting HW
+
+Signed-off-by: Sudheesh Mavila <sudheesh.mavila@amd.com>
+Signed-off-by: Sudheesh Mavila <sudheesh.mavila@amd.com>
+Change-Id: I93284153fe222ea254c06f1a8e994d5411732d12
+---
+ drivers/net/ethernet/amd/xgbe/xgbe-mdio.c | 7 +++++++
+ 1 file changed, 7 insertions(+)
+
+diff --git a/drivers/net/ethernet/amd/xgbe/xgbe-mdio.c b/drivers/net/ethernet/amd/xgbe/xgbe-mdio.c
+index 94bdf58cfaac..a93327c7709e 100644
+--- a/drivers/net/ethernet/amd/xgbe/xgbe-mdio.c
++++ b/drivers/net/ethernet/amd/xgbe/xgbe-mdio.c
+@@ -1234,6 +1234,13 @@ static int __xgbe_phy_config_aneg(struct xgbe_prv_data *pdata, bool set_mode)
+ /* Disable auto-negotiation interrupt */
+ disable_irq(pdata->an_irq);
+
++ if(pdata->an_mode != XGBE_AN_MODE_MDIO) {
++ if(xgbe_cur_mode(pdata) == XGBE_MODE_KR) {
++ xgbe_change_mode(pdata, XGBE_MODE_KR);
++ netif_dbg(pdata, link, pdata->netdev, "AN force modeset 10GKR \n");
++ }
++ }
++
+ if (set_mode) {
+ /* Start auto-negotiation in a supported mode */
+ if (xgbe_use_mode(pdata, XGBE_MODE_KR)) {
+--
+2.34.1
+