]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
dmaengine: idxd: Move DSA/IAA device IDs to IDXD driver
authorFenghua Yu <fenghua.yu@intel.com>
Fri, 18 Oct 2024 21:37:25 +0000 (14:37 -0700)
committerVinod Koul <vkoul@kernel.org>
Mon, 21 Oct 2024 17:02:39 +0000 (22:32 +0530)
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>
drivers/dma/idxd/registers.h
include/linux/pci_ids.h

index e16dbf9ab324c5ac363b2102eff802cca75f2bd4..c426511f21048e872cee36359c208f7a15afc697 100644 (file)
@@ -6,6 +6,10 @@
 #include <uapi/linux/idxd.h>
 
 /* PCI Config */
+#define PCI_DEVICE_ID_INTEL_DSA_GNRD   0x11fb
+#define PCI_DEVICE_ID_INTEL_DSA_DMR    0x1212
+#define PCI_DEVICE_ID_INTEL_IAA_DMR    0x1216
+
 #define DEVICE_VERSION_1               0x100
 #define DEVICE_VERSION_2               0x200
 
index 4cf6aaed5f35db0bbafb8ec94a729a21fe2d29e5..e4bddb92779564ec268059c4d91465383974807f 100644 (file)
 #define PCI_DEVICE_ID_INTEL_82815_MC   0x1130
 #define PCI_DEVICE_ID_INTEL_82815_CGC  0x1132
 #define PCI_DEVICE_ID_INTEL_SST_TNG    0x119a
-#define PCI_DEVICE_ID_INTEL_DSA_GNRD   0x11fb
-#define PCI_DEVICE_ID_INTEL_DSA_DMR    0x1212
-#define PCI_DEVICE_ID_INTEL_IAA_DMR    0x1216
 #define PCI_DEVICE_ID_INTEL_82092AA_0  0x1221
 #define PCI_DEVICE_ID_INTEL_82437      0x122d
 #define PCI_DEVICE_ID_INTEL_82371FB_0  0x122e