Message ID | 20230127125511.110394-16-tjaalton@ubuntu.com |
---|---|
State | New |
Headers | show |
Series | Rest of the bugfixes from oem-5.17 | expand |
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index a24fa2996da4..b7d6ba4b5273 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c @@ -1891,6 +1891,9 @@ int pci_setup_device(struct pci_dev *dev) dev->broken_intx_masking = pci_intx_mask_broken(dev); + /* Clear errors left from system firmware */ + pci_write_config_word(dev, PCI_STATUS, 0xffff); + switch (dev->hdr_type) { /* header type */ case PCI_HEADER_TYPE_NORMAL: /* standard header */ if (class == PCI_CLASS_BRIDGE_PCI)