pci-v4.14-fixes-1
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABAgAGBQJZvJCKAAoJEFmIoMA60/r8uWUP/Rufq28Ajgd2LAEwCJxu0z5j z+rzbGKx+mnMD6x69XZsL5N2d8gs+zhVj4dz7qVdbC8MZT1kN0Nr74yvPD/+AzdB zi6LwZTavmi4P3U+tBHfjBE3ZnA1JbcUTeISVe4rB5ZAorwQBChRwBTM1cBABxxA gVWosHA7Ns+ACYbBN0VXdXZOP7oUMzXQngUf2ntq1TgtTrGQL5QSEb5CJpwlI3rO lGKUZJJNVT9IGwmWPRwOtxUS47GbgVTPhvktUvo47rp1tucyXluuKM5hIPFiFxme lJlMJFQFB0R9kvKvqEoktja1oOKWv3eHuCYhMncZt87T4jATRuhuBFmhDCAuEjW3 E0voMXsd3mH1zUYMdOnO9V+tIZUC+3li2m3BsAZuYLiDD6c0BN0fsvmyyVM9yi4H qDLJhhqJMKS+/RyoabskqYyf1eRIA0bO9HRIpN/NsAsd3HP5tD9fgppx18qBRXvt N3lJwiRojfOtPqLD2NEOofMXMU3zdJfF9z9LXhGgU3NlasyIHKbdYJStE62UBNwD Xe/Jm4wF+geSXBzfz5UuA/YCFDhLguEWzkZfJv0Y50pxKJNq1qXejFl45YXM5V4i 3BQR0u98mO3HZ2wey4dTa66YkjR5KAQIaSwPSr4GnFTF/h8skN6z4UlPvXZdMCrg 9ibs4Rjkcvf11VqD02aF =XeQj -----END PGP SIGNATURE----- Merge tag 'pci-v4.14-fixes-1' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci Pull PCI fix from Bjorn Helgaas: "Revert an attempt to fix a race while enabling upstream bridges because it broke iwlwifi firmware loading" * tag 'pci-v4.14-fixes-1' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci: Revert "PCI: Avoid race while enabling upstream bridges"
This commit is contained in:
commit
8d93c7a431
|
@ -52,7 +52,6 @@ static void pci_pme_list_scan(struct work_struct *work);
|
|||
static LIST_HEAD(pci_pme_list);
|
||||
static DEFINE_MUTEX(pci_pme_list_mutex);
|
||||
static DECLARE_DELAYED_WORK(pci_pme_work, pci_pme_list_scan);
|
||||
static DEFINE_MUTEX(pci_bridge_mutex);
|
||||
|
||||
struct pci_pme_device {
|
||||
struct list_head list;
|
||||
|
@ -1351,16 +1350,10 @@ static void pci_enable_bridge(struct pci_dev *dev)
|
|||
if (bridge)
|
||||
pci_enable_bridge(bridge);
|
||||
|
||||
/*
|
||||
* Hold pci_bridge_mutex to prevent a race when enabling two
|
||||
* devices below the bridge simultaneously. The race may cause a
|
||||
* PCI_COMMAND_MEMORY update to be lost (see changelog).
|
||||
*/
|
||||
mutex_lock(&pci_bridge_mutex);
|
||||
if (pci_is_enabled(dev)) {
|
||||
if (!dev->is_busmaster)
|
||||
pci_set_master(dev);
|
||||
goto end;
|
||||
return;
|
||||
}
|
||||
|
||||
retval = pci_enable_device(dev);
|
||||
|
@ -1368,8 +1361,6 @@ static void pci_enable_bridge(struct pci_dev *dev)
|
|||
dev_err(&dev->dev, "Error enabling bridge (%d), continuing\n",
|
||||
retval);
|
||||
pci_set_master(dev);
|
||||
end:
|
||||
mutex_unlock(&pci_bridge_mutex);
|
||||
}
|
||||
|
||||
static int pci_enable_device_flags(struct pci_dev *dev, unsigned long flags)
|
||||
|
@ -1394,7 +1385,7 @@ static int pci_enable_device_flags(struct pci_dev *dev, unsigned long flags)
|
|||
return 0; /* already enabled */
|
||||
|
||||
bridge = pci_upstream_bridge(dev);
|
||||
if (bridge && !pci_is_enabled(bridge))
|
||||
if (bridge)
|
||||
pci_enable_bridge(bridge);
|
||||
|
||||
/* only skip sriov related */
|
||||
|
|
Loading…
Reference in New Issue