[v1,2/2] net/axgbe: disable the CDR wa for Yellow Carp devices

Message ID 20220131053920.167230-3-ssebasti@amd.com (mailing list archive)
State Accepted, archived
Delegated to: Ferruh Yigit
Headers
Series net/axgbe: Add support for Yellow Carp ethernet |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK
ci/intel-Testing success Testing PASS

Commit Message

Selwin Sebastian Jan. 31, 2022, 5:39 a.m. UTC
  From: Selwin Sebastian <selwin.sebastian@amd.com>

Yellow Carp ethernet devices (V3xxx) do not require
autonegotiation CDR workaround, hence disable the same.

Signed-off-by: Selwin Sebastian <selwin.sebastian@amd.com>
---
 drivers/net/axgbe/axgbe_ethdev.c | 2 ++
 1 file changed, 2 insertions(+)
  

Patch

diff --git a/drivers/net/axgbe/axgbe_ethdev.c b/drivers/net/axgbe/axgbe_ethdev.c
index 2be9387f98..951da5cc26 100644
--- a/drivers/net/axgbe/axgbe_ethdev.c
+++ b/drivers/net/axgbe/axgbe_ethdev.c
@@ -2205,6 +2205,8 @@  eth_axgbe_dev_init(struct rte_eth_dev *eth_dev)
 	case AMD_PCI_YC_ROOT_COMPLEX_ID:
 		pdata->xpcs_window_def_reg = PCS_V2_YC_WINDOW_DEF;
 		pdata->xpcs_window_sel_reg = PCS_V2_YC_WINDOW_SELECT;
+		/* Yellow Carp devices do not need cdr workaround */
+		pdata->vdata->an_cdr_workaround = 0;
 		break;
 	case AMD_PCI_SNOWY_ROOT_COMPLEX_ID:
 		pdata->xpcs_window_def_reg = PCS_V2_WINDOW_DEF;