Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Fenghua Yu and committed by
Vinod Koul
3e482e28 e7a614cc

+4 -3
+4
drivers/dma/idxd/registers.h
··· 6 6 #include <uapi/linux/idxd.h> 7 7 8 8 /* 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 + 9 13 #define DEVICE_VERSION_1 0x100 10 14 #define DEVICE_VERSION_2 0x200 11 15
-3
include/linux/pci_ids.h
··· 2709 2709 #define PCI_DEVICE_ID_INTEL_82815_MC 0x1130 2710 2710 #define PCI_DEVICE_ID_INTEL_82815_CGC 0x1132 2711 2711 #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 2715 2712 #define PCI_DEVICE_ID_INTEL_82092AA_0 0x1221 2716 2713 #define PCI_DEVICE_ID_INTEL_82437 0x122d 2717 2714 #define PCI_DEVICE_ID_INTEL_82371FB_0 0x122e