We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9965133 + a4bbcac commit 145eec9Copy full SHA for 145eec9
1 file changed
drivers/pci/controller/pci-loongson.c
@@ -163,6 +163,19 @@ DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_LOONGSON,
163
DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_LOONGSON,
164
DEV_LS7A_HDMI, loongson_pci_pin_quirk);
165
166
+static void loongson_pci_msi_quirk(struct pci_dev *dev)
167
+{
168
+ u16 val, class = dev->class >> 8;
169
+
170
+ if (class != PCI_CLASS_BRIDGE_HOST)
171
+ return;
172
173
+ pci_read_config_word(dev, dev->msi_cap + PCI_MSI_FLAGS, &val);
174
+ val |= PCI_MSI_FLAGS_ENABLE;
175
+ pci_write_config_word(dev, dev->msi_cap + PCI_MSI_FLAGS, val);
176
+}
177
+DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_LOONGSON, DEV_LS7A_PCIE_PORT5, loongson_pci_msi_quirk);
178
179
static struct loongson_pci *pci_bus_to_loongson_pci(struct pci_bus *bus)
180
{
181
struct pci_config_window *cfg;
0 commit comments