summaryrefslogtreecommitdiff
path: root/drivers/ntb
diff options
context:
space:
mode:
authorSanjay R Mehta <sanju.mehta@amd.com>2019-09-15 20:07:43 +0300
committerJon Mason <jdmason@kudzu.us>2019-09-24 00:20:40 +0300
commit5f59f6b182f75e5247104c8e0150c3d41f0a4c18 (patch)
treec83359dc54185d2d84f1b3d18743ff49347ef0f2 /drivers/ntb
parent5e2cbf13d0ec4fe2b6aabbeb6fe44830e8788dd0 (diff)
downloadlinux-5f59f6b182f75e5247104c8e0150c3d41f0a4c18.tar.xz
ntb_hw_amd: Add a new NTB PCI device ID
Signed-off-by: Sanjay R Mehta <sanju.mehta@amd.com> Signed-off-by: Jon Mason <jdmason@kudzu.us>
Diffstat (limited to 'drivers/ntb')
-rw-r--r--drivers/ntb/hw/amd/ntb_hw_amd.c3
-rw-r--r--drivers/ntb/hw/amd/ntb_hw_amd.h1
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ntb/hw/amd/ntb_hw_amd.c b/drivers/ntb/hw/amd/ntb_hw_amd.c
index 2859cc99b73e..e9286cf241f0 100644
--- a/drivers/ntb/hw/amd/ntb_hw_amd.c
+++ b/drivers/ntb/hw/amd/ntb_hw_amd.c
@@ -1124,7 +1124,8 @@ static const struct file_operations amd_ntb_debugfs_info = {
};
static const struct pci_device_id amd_ntb_pci_tbl[] = {
- {PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_NTB)},
+ {PCI_VDEVICE(AMD, 0x145b)},
+ {PCI_VDEVICE(AMD, 0x148b)},
{0}
};
MODULE_DEVICE_TABLE(pci, amd_ntb_pci_tbl);
diff --git a/drivers/ntb/hw/amd/ntb_hw_amd.h b/drivers/ntb/hw/amd/ntb_hw_amd.h
index 8f3617a46292..3aac994f3e77 100644
--- a/drivers/ntb/hw/amd/ntb_hw_amd.h
+++ b/drivers/ntb/hw/amd/ntb_hw_amd.h
@@ -52,7 +52,6 @@
#include <linux/ntb.h>
#include <linux/pci.h>
-#define PCI_DEVICE_ID_AMD_NTB 0x145B
#define AMD_LINK_HB_TIMEOUT msecs_to_jiffies(1000)
#define AMD_LINK_STATUS_OFFSET 0x68
#define NTB_LIN_STA_ACTIVE_BIT 0x00000002