Skip to content

Commit de48b82

Browse files
Hariprasad Kelamgregkh
authored andcommitted
Octeontx2-af: RPM: Register driver with PCI subsys IDs
[ Upstream commit fc91671 ] Although the PCI device ID and Vendor ID for the RPM (MAC) block have remained the same across Octeon CN10K and the next-generation CN20K silicon, Hardware architecture has changed (NIX mapped RPMs and RFOE Mapped RPMs). Add PCI Subsystem IDs to the device table to ensure that this driver can be probed from NIX mapped RPM devices only. Signed-off-by: Hariprasad Kelam <hkelam@marvell.com> Link: https://patch.msgid.link/20250224035603.1220913-1-hkelam@marvell.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 673dde8 commit de48b82

File tree

2 files changed

+14
-2
lines changed
  • drivers/net/ethernet/marvell/octeontx2/af

2 files changed

+14
-2
lines changed

drivers/net/ethernet/marvell/octeontx2/af/cgx.c

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,18 @@ static int cgx_fwi_link_change(struct cgx *cgx, int lmac_id, bool en);
6666
/* Supported devices */
6767
static const struct pci_device_id cgx_id_table[] = {
6868
{ PCI_DEVICE(PCI_VENDOR_ID_CAVIUM, PCI_DEVID_OCTEONTX2_CGX) },
69-
{ PCI_DEVICE(PCI_VENDOR_ID_CAVIUM, PCI_DEVID_CN10K_RPM) },
70-
{ PCI_DEVICE(PCI_VENDOR_ID_CAVIUM, PCI_DEVID_CN10KB_RPM) },
69+
{ PCI_DEVICE_SUB(PCI_VENDOR_ID_CAVIUM, PCI_DEVID_CN10K_RPM,
70+
PCI_ANY_ID, PCI_SUBSYS_DEVID_CN10K_A) },
71+
{ PCI_DEVICE_SUB(PCI_VENDOR_ID_CAVIUM, PCI_DEVID_CN10K_RPM,
72+
PCI_ANY_ID, PCI_SUBSYS_DEVID_CNF10K_A) },
73+
{ PCI_DEVICE_SUB(PCI_VENDOR_ID_CAVIUM, PCI_DEVID_CN10K_RPM,
74+
PCI_ANY_ID, PCI_SUBSYS_DEVID_CNF10K_B) },
75+
{ PCI_DEVICE_SUB(PCI_VENDOR_ID_CAVIUM, PCI_DEVID_CN10KB_RPM,
76+
PCI_ANY_ID, PCI_SUBSYS_DEVID_CN10K_B) },
77+
{ PCI_DEVICE_SUB(PCI_VENDOR_ID_CAVIUM, PCI_DEVID_CN10KB_RPM,
78+
PCI_ANY_ID, PCI_SUBSYS_DEVID_CN20KA) },
79+
{ PCI_DEVICE_SUB(PCI_VENDOR_ID_CAVIUM, PCI_DEVID_CN10KB_RPM,
80+
PCI_ANY_ID, PCI_SUBSYS_DEVID_CNF20KA) },
7181
{ 0, } /* end of table */
7282
};
7383

drivers/net/ethernet/marvell/octeontx2/af/rvu.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
#define PCI_SUBSYS_DEVID_CNF10K_A 0xBA00
3131
#define PCI_SUBSYS_DEVID_CNF10K_B 0xBC00
3232
#define PCI_SUBSYS_DEVID_CN10K_B 0xBD00
33+
#define PCI_SUBSYS_DEVID_CN20KA 0xC220
34+
#define PCI_SUBSYS_DEVID_CNF20KA 0xC320
3335

3436
/* PCI BAR nos */
3537
#define PCI_AF_REG_BAR_NUM 0

0 commit comments

Comments
 (0)