mbox series

[v2,net-next,0/4] amd-xgbe: add support for AMD Crater

Message ID 20231116135416.3371367-1-Raju.Rangoju@amd.com (mailing list archive)
Headers show
Series amd-xgbe: add support for AMD Crater | expand

Message

Raju Rangoju Nov. 16, 2023, 1:54 p.m. UTC
Add support for a new AMD Ethernet device called "Crater". It has a new
PCI ID, add this to the current list of supported devices in the
amd-xgbe devices. Also, the BAR1 addresses cannot be used to access the
PCS registers on Crater platform, use the indirect addressing via SMN
instead.

Changes since v1:
 - A new cleanup patch is introduced to reorganize the code using helper
   functions.
 - New XGBE_XPCS_ACCESS_V3 type has been introduced handle the Crater
   device XPCS handling.
 - Used FIELD_GET() and FIELD_PREP() helpers

Raju Rangoju (4):
  amd-xgbe: reorganize the code of XPCS access
  amd-xgbe: add support for Crater ethernet device
  amd-xgbe: add support for new pci device id 0x1641
  amd-xgbe: use smn functions to avoid race

 drivers/net/ethernet/amd/xgbe/xgbe-common.h |   5 +
 drivers/net/ethernet/amd/xgbe/xgbe-dev.c    | 122 ++++++++++++++++----
 drivers/net/ethernet/amd/xgbe/xgbe-pci.c    |  52 ++++++++-
 drivers/net/ethernet/amd/xgbe/xgbe.h        |   6 +
 4 files changed, 157 insertions(+), 28 deletions(-)