Skip to content

Commit 3e482e2

Browse files
Fenghua Yuvinodkoul
authored andcommitted
dmaengine: idxd: Move DSA/IAA device IDs to IDXD driver
Since the DSA/IAA device IDs are only used by the IDXD driver, there is no need to define them as public IDs. Move their definitions to the IDXD driver to limit their scope. This change helps reduce unnecessary exposure of the device IDs in the global space, making the codebase cleaner and better encapsulated. There is no functional change. Signed-off-by: Fenghua Yu <fenghua.yu@intel.com> Link: https://lore.kernel.org/r/20241018213725.4167413-1-fenghua.yu@intel.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent e7a614c commit 3e482e2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

drivers/dma/idxd/registers.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
#include <uapi/linux/idxd.h>
77

88
/* PCI Config */
9+
#define PCI_DEVICE_ID_INTEL_DSA_GNRD 0x11fb
10+
#define PCI_DEVICE_ID_INTEL_DSA_DMR 0x1212
11+
#define PCI_DEVICE_ID_INTEL_IAA_DMR 0x1216
12+
913
#define DEVICE_VERSION_1 0x100
1014
#define DEVICE_VERSION_2 0x200
1115

include/linux/pci_ids.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2709,9 +2709,6 @@
27092709
#define PCI_DEVICE_ID_INTEL_82815_MC 0x1130
27102710
#define PCI_DEVICE_ID_INTEL_82815_CGC 0x1132
27112711
#define PCI_DEVICE_ID_INTEL_SST_TNG 0x119a
2712-
#define PCI_DEVICE_ID_INTEL_DSA_GNRD 0x11fb
2713-
#define PCI_DEVICE_ID_INTEL_DSA_DMR 0x1212
2714-
#define PCI_DEVICE_ID_INTEL_IAA_DMR 0x1216
27152712
#define PCI_DEVICE_ID_INTEL_82092AA_0 0x1221
27162713
#define PCI_DEVICE_ID_INTEL_82437 0x122d
27172714
#define PCI_DEVICE_ID_INTEL_82371FB_0 0x122e

0 commit comments

Comments
 (0)