]> www.infradead.org Git - users/hch/misc.git/commitdiff
drm/intel/pciids: Add match on vendor/id only
authorLucas De Marchi <lucas.demarchi@intel.com>
Fri, 8 Aug 2025 17:41:08 +0000 (10:41 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Mon, 11 Aug 2025 14:45:48 +0000 (07:45 -0700)
All our PCI ID macros match on the PCI class besides the vendor and
devid, even for devices that may or may not have display. This may not
work going forward, so add a simple INTEL_PCI_DEVICE that matches only
on vendor/device IDs.

Cc: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Link: https://lore.kernel.org/r/20250808-intel-pci-device-v1-1-ce3545d86502@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
include/drm/intel/pciids.h

index 76f8d26f9cc9d533fe5496bc6f120e56e1154e8a..da6301a6fceabcf19eb648b1ef077cd2d0b0b731 100644 (file)
 #define __PCIIDS_H__
 
 #ifdef __KERNEL__
+#define INTEL_PCI_DEVICE(_id, _info) { \
+       PCI_DEVICE(PCI_VENDOR_ID_INTEL, (_id)), \
+       .driver_data = (kernel_ulong_t)(_info), \
+}
+
 #define INTEL_VGA_DEVICE(_id, _info) { \
        PCI_DEVICE(PCI_VENDOR_ID_INTEL, (_id)), \
        .class = PCI_BASE_CLASS_DISPLAY << 16, .class_mask = 0xff << 16, \