Skip to content

Commit 44e9859

Browse files
committed
Revert "PCI: Clear PCI_STATUS when setting up device"
This reverts commit 6cd514e. Christophe Fergeau reported that 6cd514e ("PCI: Clear PCI_STATUS when setting up device") causes boot failures when trying to start linux guests with Apple's virtualization framework (for example using https://developer.apple.com/documentation/virtualization/running_linux_in_a_virtual_machine?language=objc) 6cd514e only solved a cosmetic problem, so revert it to fix the boot failures. Link: https://bugzilla.redhat.com/show_bug.cgi?id=2137803 Signed-off-by: Bjorn Helgaas <[email protected]>
1 parent 503fa23 commit 44e9859

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/pci/probe.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1891,9 +1891,6 @@ int pci_setup_device(struct pci_dev *dev)
18911891

18921892
dev->broken_intx_masking = pci_intx_mask_broken(dev);
18931893

1894-
/* Clear errors left from system firmware */
1895-
pci_write_config_word(dev, PCI_STATUS, 0xffff);
1896-
18971894
switch (dev->hdr_type) { /* header type */
18981895
case PCI_HEADER_TYPE_NORMAL: /* standard header */
18991896
if (class == PCI_CLASS_BRIDGE_PCI)

0 commit comments

Comments
 (0)