1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-21 15:45:02 +00:00

Do not apply do_power_resume for suspending case. When do_powerstate was

splitted into do_power_resume and do_power_nodriver, it became stale.
This commit is contained in:
Jung-uk Kim 2010-10-19 17:05:51 +00:00
parent bc2589f5b7
commit b56b75259b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=214064

View File

@ -2911,9 +2911,6 @@ pci_set_power_children(device_t dev, device_t *devlist, int numdevs,
struct pci_devinfo *dinfo;
int dstate, i;
if (!pci_do_power_resume)
return;
/*
* Set the device to the given state. If the firmware suggests
* a different power state, use it instead. If power management
@ -2976,7 +2973,9 @@ pci_resume(device_t dev)
*/
if ((error = device_get_children(dev, &devlist, &numdevs)) != 0)
return (error);
pci_set_power_children(dev, devlist, numdevs, PCI_POWERSTATE_D0);
if (pci_do_power_resume)
pci_set_power_children(dev, devlist, numdevs,
PCI_POWERSTATE_D0);
/* Now the device is powered up, restore its config space. */
for (i = 0; i < numdevs; i++) {