Skip to content

Commit a1383ac

Browse files
dceraologregkh
authored andcommitted
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: ceeedd9 ("mei: pxp: match without driver name") Signed-off-by: Daniele Ceraolo Spurio <[email protected]> Signed-off-by: Tomas Winkler <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 7ab7f2c commit a1383ac

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

drivers/misc/mei/pxp/mei_pxp.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,11 @@ static int mei_pxp_component_match(struct device *dev, int subcomponent,
236236

237237
pdev = to_pci_dev(dev);
238238

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))
241244
return 0;
242245

243246
if (subcomponent != I915_COMPONENT_PXP)

0 commit comments

Comments
 (0)