pci-driver.c (e89c6fdf9e0eb1b5a03574d4ca73e83eae8deb91) | pci-driver.c (2965faa5e03d1e71e9ff9aa143fff39e0a77543a) |
---|---|
1/* 2 * drivers/pci/pci-driver.c 3 * 4 * (C) Copyright 2002-2004, 2007 Greg Kroah-Hartman <greg@kroah.com> 5 * (C) Copyright 2007 Novell Inc. 6 * 7 * Released under the GPL v2 only. 8 * --- 453 unchanged lines hidden (view full) --- 462 463 pm_runtime_resume(dev); 464 465 if (drv && drv->shutdown) 466 drv->shutdown(pci_dev); 467 pci_msi_shutdown(pci_dev); 468 pci_msix_shutdown(pci_dev); 469 | 1/* 2 * drivers/pci/pci-driver.c 3 * 4 * (C) Copyright 2002-2004, 2007 Greg Kroah-Hartman <greg@kroah.com> 5 * (C) Copyright 2007 Novell Inc. 6 * 7 * Released under the GPL v2 only. 8 * --- 453 unchanged lines hidden (view full) --- 462 463 pm_runtime_resume(dev); 464 465 if (drv && drv->shutdown) 466 drv->shutdown(pci_dev); 467 pci_msi_shutdown(pci_dev); 468 pci_msix_shutdown(pci_dev); 469 |
470#ifdef CONFIG_KEXEC | 470#ifdef CONFIG_KEXEC_CORE |
471 /* 472 * If this is a kexec reboot, turn off Bus Master bit on the 473 * device to tell it to not continue to do DMA. Don't touch 474 * devices in D3cold or unknown states. 475 * If it is not a kexec reboot, firmware will hit the PCI 476 * devices with big hammer and stop their DMA any way. 477 */ 478 if (kexec_in_progress && (pci_dev->current_state <= PCI_D3hot)) --- 951 unchanged lines hidden --- | 471 /* 472 * If this is a kexec reboot, turn off Bus Master bit on the 473 * device to tell it to not continue to do DMA. Don't touch 474 * devices in D3cold or unknown states. 475 * If it is not a kexec reboot, firmware will hit the PCI 476 * devices with big hammer and stop their DMA any way. 477 */ 478 if (kexec_in_progress && (pci_dev->current_state <= PCI_D3hot)) --- 951 unchanged lines hidden --- |