Skip to content

Commit

Permalink
dmaengine: idxd: Move DSA/IAA device IDs to IDXD driver
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Fenghua Yu authored and Vinod Koul committed Oct 21, 2024
1 parent e7a614c commit 3e482e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 4 additions & 0 deletions drivers/dma/idxd/registers.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 0 additions & 3 deletions include/linux/pci_ids.h
Original file line number Diff line number Diff line change
Expand Up @@ -2709,9 +2709,6 @@
#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
Expand Down

0 comments on commit 3e482e2

Please sign in to comment.