jhb c1207dc20c Make detaching drivers from PCI devices more robust. While here, fix a
bug where a PCI device would be powered down if it failed to probe, but
not when its driver was detached (e.g. via kldunload).
- Add a new helper method resource_list_release_active() which forcefully
  releases any active resources of a specified type from a resource list.
- Add a bus_child_detached method for the PCI bus driver which forces any
  active resources to be released (and whines to the console if it finds
  any) and then powers the device down.
- Call pci_child_detached() if we fail to probe a device when a driver
  is kldloaded.  This isn't perfect but can avoid leaking resources
  from a probe() routine in the kldload case.

Reviewed by:	imp, brooks
MFC after:	1 month
2013-06-27 20:21:54 +00:00
..
2013-06-25 22:14:32 +00:00
2013-06-08 13:30:13 +00:00
2013-06-26 19:43:22 +00:00
2013-06-14 23:04:31 +00:00
2013-05-12 16:43:26 +00:00
2013-06-01 12:21:59 +00:00
2013-04-17 11:45:15 +00:00
MFC
2013-02-21 21:59:35 +00:00
2013-05-31 00:43:41 +00:00
2013-06-18 06:55:58 +00:00
MFC
2013-03-13 01:05:42 +00:00