svn commit: r214065 - head/sys/dev/pci
Jung-uk Kim
jkim at FreeBSD.org
Tue Oct 19 17:15:22 UTC 2010
Author: jkim
Date: Tue Oct 19 17:15:22 2010
New Revision: 214065
URL: http://svn.freebsd.org/changeset/base/214065
Log:
Remove PCI header type 0 restriction from power state changes. PCI config.
registers for bridges are saved and restored since r200341.
OK'ed by: imp, jhb
Modified:
head/sys/dev/pci/pci.c
Modified: head/sys/dev/pci/pci.c
==============================================================================
--- head/sys/dev/pci/pci.c Tue Oct 19 17:05:51 2010 (r214064)
+++ head/sys/dev/pci/pci.c Tue Oct 19 17:15:22 2010 (r214065)
@@ -2916,7 +2916,7 @@ pci_set_power_children(device_t dev, dev
* a different power state, use it instead. If power management
* is not present, the firmware is responsible for managing
* device power. Skip children who aren't attached since they
- * are handled separately. Only manage type 0 devices for now.
+ * are handled separately.
*/
pcib = device_get_parent(dev);
for (i = 0; i < numdevs; i++) {
@@ -2924,8 +2924,6 @@ pci_set_power_children(device_t dev, dev
dinfo = device_get_ivars(child);
dstate = state;
if (device_is_attached(child) &&
- (dinfo->cfg.hdrtype & PCIM_HDRTYPE) ==
- PCIM_HDRTYPE_NORMAL &&
PCIB_POWER_FOR_SLEEP(pcib, dev, &dstate) == 0)
pci_set_powerstate(child, dstate);
}
More information about the svn-src-head
mailing list