PERFORCE change 1207530 for review
John-Mark Gurney
jmg at FreeBSD.org
Mon Mar 23 06:52:54 UTC 2015
http://p4web.freebsd.org/@@1207530?ac=10
Change 1207530 by jmg at jmg_pciehp on 2015/03/23 06:51:53
simplify how resume is handled, ones we resume, NULL out, and
then resume the rest.. this keeps the list of important ones in
a single place...
Sponsored by: FreeBSD Foundation
Affected files ...
.. //depot/projects/pciehotplug/sys/dev/pci/pci.c#8 edit
Differences ...
==== //depot/projects/pciehotplug/sys/dev/pci/pci.c#8 (text+ko) ====
@@ -3829,20 +3829,14 @@
case PCIC_BRIDGE:
case PCIC_BASEPERIPH:
BUS_RESUME_CHILD(dev, child);
+ devlist[i] = NULL;
break;
}
}
for (i = 0; i < numdevs; i++) {
child = devlist[i];
- switch (pci_get_class(child)) {
- case PCIC_DISPLAY:
- case PCIC_MEMORY:
- case PCIC_BRIDGE:
- case PCIC_BASEPERIPH:
- break;
- default:
+ if (child != NULL)
BUS_RESUME_CHILD(dev, child);
- }
}
free(devlist, M_TEMP);
return (0);
More information about the p4-projects
mailing list