Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Oct 2010 17:15:22 +0000 (UTC)
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r214065 - head/sys/dev/pci
Message-ID:  <201010191715.o9JHFMYV021418@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010191715.o9JHFMYV021418>