aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71-e3000/0010-amd-xgbe-Advertise-FEC-support-with-the-KR-re-driver.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71-e3000/0010-amd-xgbe-Advertise-FEC-support-with-the-KR-re-driver.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71-e3000/0010-amd-xgbe-Advertise-FEC-support-with-the-KR-re-driver.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71-e3000/0010-amd-xgbe-Advertise-FEC-support-with-the-KR-re-driver.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71-e3000/0010-amd-xgbe-Advertise-FEC-support-with-the-KR-re-driver.patch
new file mode 100644
index 00000000..b3dcded5
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71-e3000/0010-amd-xgbe-Advertise-FEC-support-with-the-KR-re-driver.patch
@@ -0,0 +1,33 @@
+From 4e6f4e0094f5fd77b0d1d57814132ab7d7a9afe3 Mon Sep 17 00:00:00 2001
+From: Tom Lendacky <thomas.lendacky@amd.com>
+Date: Wed, 23 May 2018 11:39:31 -0500
+Subject: [PATCH 10/95] amd-xgbe: Advertise FEC support with the KR re-driver
+
+When a KR re-driver is present, indicate the FEC support is available
+during auto-negotiation.
+
+Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
+Signed-off-by: David S. Miller <davem@davemloft.net>
+Signed-off-by: Sudheesh Mavila <sudheesh.mavila@amd.com>
+---
+ drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c b/drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c
+index 141bb13..dd747f6 100644
+--- a/drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c
++++ b/drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c
+@@ -1720,6 +1720,10 @@ static void xgbe_phy_an_advertising(struct xgbe_prv_data *pdata,
+ XGBE_CLR_ADV(dlks, 1000baseKX_Full);
+ XGBE_CLR_ADV(dlks, 10000baseKR_Full);
+
++ /* Advertise FEC support is present */
++ if (pdata->fec_ability & MDIO_PMA_10GBR_FECABLE_ABLE)
++ XGBE_SET_ADV(dlks, 10000baseR_FEC);
++
+ switch (phy_data->port_mode) {
+ case XGBE_PORT_MODE_BACKPLANE:
+ XGBE_SET_ADV(dlks, 10000baseKR_Full);
+--
+2.7.4
+