svn commit: r267989 - projects/pmac_pmu/sys/dev/pci

Justin Hibbits jhibbits at FreeBSD.org
Fri Jun 27 23:12:24 UTC 2014


Author: jhibbits
Date: Fri Jun 27 23:12:24 2014
New Revision: 267989
URL: http://svnweb.freebsd.org/changeset/base/267989

Log:
  Move the resume to *after* the config restore.  This matches existing behavior.

Modified:
  projects/pmac_pmu/sys/dev/pci/pci.c

Modified: projects/pmac_pmu/sys/dev/pci/pci.c
==============================================================================
--- projects/pmac_pmu/sys/dev/pci/pci.c	Fri Jun 27 23:11:13 2014	(r267988)
+++ projects/pmac_pmu/sys/dev/pci/pci.c	Fri Jun 27 23:12:24 2014	(r267989)
@@ -3674,10 +3674,10 @@ pci_resume_child(device_t dev, device_t 
 
 	if (pci_do_power_resume)
 		pci_set_power_child(dev, child, PCI_POWERSTATE_D0);
-	error = bus_generic_resume_child(dev, child);
 
 	dinfo = device_get_ivars(child);
 	pci_cfg_restore(child, dinfo);
+	error = bus_generic_resume_child(dev, child);
 
 	return (error);
 }


More information about the svn-src-projects mailing list