svn commit: r223352 - head/sys/dev/pccbb
Warner Losh
imp at FreeBSD.org
Tue Jun 21 03:05:18 UTC 2011
Author: imp
Date: Tue Jun 21 03:05:17 2011
New Revision: 223352
URL: http://svn.freebsd.org/changeset/base/223352
Log:
Mark the card as bad on shutdown. This means that bus_child_present
will return false on shutdown and massive spewage from usb disappears
for usb cardbus adapters.
Modified:
head/sys/dev/pccbb/pccbb_pci.c
Modified: head/sys/dev/pccbb/pccbb_pci.c
==============================================================================
--- head/sys/dev/pccbb/pccbb_pci.c Mon Jun 20 23:04:13 2011 (r223351)
+++ head/sys/dev/pccbb/pccbb_pci.c Tue Jun 21 03:05:17 2011 (r223352)
@@ -658,6 +658,12 @@ cbb_pci_shutdown(device_t brdev)
struct cbb_softc *sc = (struct cbb_softc *)device_get_softc(brdev);
/*
+ * We're about to pull the rug out from the card, so mark it as
+ * gone to prevent harm.
+ */
+ sc->cardok = 0;
+
+ /*
* Place the cards in reset, turn off the interrupts and power
* down the socket.
*/
More information about the svn-src-head
mailing list