[PATCH] PCI: make MSI quirk inheritable from the pci bus
It turns out AMD 8131 quirk only affects MSI for devices behind the 8131 bridge. Handle this by adding a flags field in pci_bus, inherited from parent to child. Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
e5548e960f
commit
6e325a62a0
@ -703,6 +703,9 @@ int pci_enable_msi(struct pci_dev* dev)
|
||||
if (dev->no_msi)
|
||||
return status;
|
||||
|
||||
if (dev->bus->bus_flags & PCI_BUS_FLAGS_NO_MSI)
|
||||
return -EINVAL;
|
||||
|
||||
temp = dev->irq;
|
||||
|
||||
status = msi_init();
|
||||
|
Reference in New Issue
Block a user