Merge branch 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6
* 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6:
PCI/PM: Report wakeup events before resuming devices
PCI/PM: Use pm_wakeup_event() directly for reporting wakeup events
PCI: sysfs: Update ROM to include default owner write access
x86/PCI: make Broadcom CNB20LE driver EMBEDDED and EXPERIMENTAL
x86/PCI: don't use native Broadcom CNB20LE driver when ACPI is available
PCI/ACPI: Request _OSC control once for each root bridge (v3)
PCI: enable pci=bfsort by default on future Dell systems
PCI/PCIe: Clear Root PME Status bits early during system resume
PCI: pci-stub: ignore zero-length id parameters
x86/PCI: irq and pci_ids patch for Intel Patsburg
PCI: Skip id checking if no id is passed
PCI: fix __pci_device_probe kernel-doc warning
PCI: make pci_restore_state return void
PCI: Disable ASPM if BIOS asks us to
PCI: Add mask bit definition for MSI-X table
PCI: MSI: Move MSI-X entry definition to pci_regs.h
Fix up trivial conflicts in drivers/net/{skge.c,sky2.c} that had in the
meantime been converted to not use legacy PCI power management, and thus
no longer use pci_restore_state() at all (and that caused trivial
conflicts with the "make pci_restore_state return void" patch)
This commit is contained in:
@@ -1107,22 +1107,9 @@ static int __falcon_reset_hw(struct efx_nic *efx, enum reset_type method)
|
||||
|
||||
/* Restore PCI configuration if needed */
|
||||
if (method == RESET_TYPE_WORLD) {
|
||||
if (efx_nic_is_dual_func(efx)) {
|
||||
rc = pci_restore_state(nic_data->pci_dev2);
|
||||
if (rc) {
|
||||
netif_err(efx, drv, efx->net_dev,
|
||||
"failed to restore PCI config for "
|
||||
"the secondary function\n");
|
||||
goto fail3;
|
||||
}
|
||||
}
|
||||
rc = pci_restore_state(efx->pci_dev);
|
||||
if (rc) {
|
||||
netif_err(efx, drv, efx->net_dev,
|
||||
"failed to restore PCI config for the "
|
||||
"primary function\n");
|
||||
goto fail4;
|
||||
}
|
||||
if (efx_nic_is_dual_func(efx))
|
||||
pci_restore_state(nic_data->pci_dev2);
|
||||
pci_restore_state(efx->pci_dev);
|
||||
netif_dbg(efx, drv, efx->net_dev,
|
||||
"successfully restored PCI config\n");
|
||||
}
|
||||
@@ -1133,7 +1120,7 @@ static int __falcon_reset_hw(struct efx_nic *efx, enum reset_type method)
|
||||
rc = -ETIMEDOUT;
|
||||
netif_err(efx, hw, efx->net_dev,
|
||||
"timed out waiting for hardware reset\n");
|
||||
goto fail5;
|
||||
goto fail3;
|
||||
}
|
||||
netif_dbg(efx, hw, efx->net_dev, "hardware reset complete\n");
|
||||
|
||||
@@ -1141,11 +1128,9 @@ static int __falcon_reset_hw(struct efx_nic *efx, enum reset_type method)
|
||||
|
||||
/* pci_save_state() and pci_restore_state() MUST be called in pairs */
|
||||
fail2:
|
||||
fail3:
|
||||
pci_restore_state(efx->pci_dev);
|
||||
fail1:
|
||||
fail4:
|
||||
fail5:
|
||||
fail3:
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user