modesetting: match PCI class 3, any subclass
If a device is not primary, the PCI device match fails because the xf86-video-modesetting driver looks specifically for a PCI class match of 0x30000 with a mask of 0xffffff. This fails to match, for example, a non-primary Intel VGA device, because it is reported as having a class of 0x38000. Fix that by ignoring the low 16 bits of the class in the pci_id_match table. Signed-off-by: Aaron Plattner <aplattner@nvidia.com> Reviewed on IRC by Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
beb1715e96
commit
1754973206
|
@ -86,7 +86,7 @@ static Bool ms_driver_func(ScrnInfoPtr scrn, xorgDriverFuncOp op,
|
|||
static const struct pci_id_match ms_device_match[] = {
|
||||
{
|
||||
PCI_MATCH_ANY, PCI_MATCH_ANY, PCI_MATCH_ANY, PCI_MATCH_ANY,
|
||||
0x00030000, 0x00ffffff, 0
|
||||
0x00030000, 0x00ff0000, 0
|
||||
},
|
||||
|
||||
{ 0, 0, 0 },
|
||||
|
|
Loading…
Reference in New Issue