Skip to content

Commit

Permalink
mei: pxp: match against PCI_CLASS_DISPLAY_OTHER
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
dceraolo authored and gregkh committed Apr 24, 2024
1 parent 7ab7f2c commit a1383ac
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions drivers/misc/mei/pxp/mei_pxp.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,11 @@ static int mei_pxp_component_match(struct device *dev, int subcomponent,

pdev = to_pci_dev(dev);

if (pdev->class != (PCI_CLASS_DISPLAY_VGA << 8) ||
pdev->vendor != PCI_VENDOR_ID_INTEL)
if (pdev->vendor != PCI_VENDOR_ID_INTEL)
return 0;

if (pdev->class != (PCI_CLASS_DISPLAY_VGA << 8) &&
pdev->class != (PCI_CLASS_DISPLAY_OTHER << 8))
return 0;

if (subcomponent != I915_COMPONENT_PXP)
Expand Down

0 comments on commit a1383ac

Please sign in to comment.