diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2010-10-19 17:15:22 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2010-10-19 17:15:22 +0000 |
commit | 6d018c85e10dbe6326651d6eb5082d033393ffb2 (patch) | |
tree | c24d1320bb31ae9c511992a48f5e37b27723386e /sys/dev | |
parent | b56b75259b6e6078dcf056e2b78c704c937e9d87 (diff) | |
download | src-6d018c85e10dbe6326651d6eb5082d033393ffb2.tar.gz src-6d018c85e10dbe6326651d6eb5082d033393ffb2.zip |
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
Notes
Notes:
svn path=/head/; revision=214065
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/pci.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index fc30e5511844..d1b211a98972 100644 --- a/sys/dev/pci/pci.c +++ b/sys/dev/pci/pci.c @@ -2916,7 +2916,7 @@ pci_set_power_children(device_t dev, device_t *devlist, int numdevs, * 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, device_t *devlist, int numdevs, 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); } |