diff options
author | Raju Rangoju <Raju.Rangoju@amd.com> | 2021-12-20 19:24:26 +0530 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-12-20 18:42:39 -0800 |
commit | dbb6c58b5a61d0c26a3da65ebb728727c305c3a1 (patch) | |
tree | a81eb3afb5c2942b966b750029577ae605ba9252 /drivers/net/ethernet/amd/xgbe/xgbe-pci.c | |
parent | dbcefdeb2a58039f4c81d0361056fbdd9be906a1 (diff) | |
download | linux-stable-dbb6c58b5a61d0c26a3da65ebb728727c305c3a1.tar.gz linux-stable-dbb6c58b5a61d0c26a3da65ebb728727c305c3a1.tar.bz2 linux-stable-dbb6c58b5a61d0c26a3da65ebb728727c305c3a1.zip |
net: amd-xgbe: Add Support for Yellow Carp Ethernet device
Yellow Carp Ethernet devices use the existing PCI ID but
the window settings for the indirect PCS access have been
altered. Add the check for Yellow Carp Ethernet devices to
use the new register values.
Co-developed-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Signed-off-by: Raju Rangoju <Raju.Rangoju@amd.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/amd/xgbe/xgbe-pci.c')
-rw-r--r-- | drivers/net/ethernet/amd/xgbe/xgbe-pci.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/amd/xgbe/xgbe-pci.c b/drivers/net/ethernet/amd/xgbe/xgbe-pci.c index 90cb55eb5466..0f930b17980e 100644 --- a/drivers/net/ethernet/amd/xgbe/xgbe-pci.c +++ b/drivers/net/ethernet/amd/xgbe/xgbe-pci.c @@ -278,6 +278,10 @@ static int xgbe_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) (rdev->vendor == PCI_VENDOR_ID_AMD) && (rdev->device == 0x15d0)) { pdata->xpcs_window_def_reg = PCS_V2_RV_WINDOW_DEF; pdata->xpcs_window_sel_reg = PCS_V2_RV_WINDOW_SELECT; + } else if (rdev && (rdev->vendor == PCI_VENDOR_ID_AMD) && + (rdev->device == 0x14b5)) { + pdata->xpcs_window_def_reg = PCS_V2_YC_WINDOW_DEF; + pdata->xpcs_window_sel_reg = PCS_V2_YC_WINDOW_SELECT; } else { pdata->xpcs_window_def_reg = PCS_V2_WINDOW_DEF; pdata->xpcs_window_sel_reg = PCS_V2_WINDOW_SELECT; |