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

mei: pxp: match against PCI_CLASS_DISPLAY_OTHER

The ATS-M class is PCI_CLASS_DISPLAY_OTHER instead of
PCI_CLASS_DISPLAY_VGA, so we need to match against that class as well.
The matching is still restricted to Intel devices only.

Fixes: ceeedd951f8a ("mei: pxp: match without driver name")
Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Link: https://lore.kernel.org/r/20240421090701.216028-1-tomas.winkler@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Daniele Ceraolo Spurio and committed by
Greg Kroah-Hartman
a1383ac7 7ab7f2ca

+5 -2
+5 -2
drivers/misc/mei/pxp/mei_pxp.c
··· 236 236 237 237 pdev = to_pci_dev(dev); 238 238 239 - if (pdev->class != (PCI_CLASS_DISPLAY_VGA << 8) || 240 - pdev->vendor != PCI_VENDOR_ID_INTEL) 239 + if (pdev->vendor != PCI_VENDOR_ID_INTEL) 240 + return 0; 241 + 242 + if (pdev->class != (PCI_CLASS_DISPLAY_VGA << 8) && 243 + pdev->class != (PCI_CLASS_DISPLAY_OTHER << 8)) 241 244 return 0; 242 245 243 246 if (subcomponent != I915_COMPONENT_PXP)