aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/dc/if_dc.c
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2011-06-21 20:52:55 +0000
committerWarner Losh <imp@FreeBSD.org>2011-06-21 20:52:55 +0000
commit7a6fab665613bf3cf58fe1a435765bdd3f17bbaa (patch)
treecbdf062430de79455ee5bdf10a08a1cd09dee246 /sys/dev/dc/if_dc.c
parentaa0ea4af6dae257a42f0c9bb80c18fbaa8874c8a (diff)
downloadsrc-7a6fab665613bf3cf58fe1a435765bdd3f17bbaa.tar.gz
src-7a6fab665613bf3cf58fe1a435765bdd3f17bbaa.zip
Supress command completion failure warning when the card isn't
present. Only call the bus to check if we actually do timeout so we don't affect the normal case (since this case needn't be optimized and this guards against all races).
Notes
Notes: svn path=/head/; revision=223381
Diffstat (limited to 'sys/dev/dc/if_dc.c')
-rw-r--r--sys/dev/dc/if_dc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/dc/if_dc.c b/sys/dev/dc/if_dc.c
index 772eede22f23..b9567de09263 100644
--- a/sys/dev/dc/if_dc.c
+++ b/sys/dev/dc/if_dc.c
@@ -1385,7 +1385,7 @@ dc_netcfg_wait(struct dc_softc *sc)
break;
DELAY(10);
}
- if (i == DC_TIMEOUT) {
+ if (i == DC_TIMEOUT && bus_child_present(sc->dc_dev)) {
if (!(isr & DC_ISR_TX_IDLE) && !DC_IS_ASIX(sc))
device_printf(sc->dc_dev,
"%s: failed to force tx to idle state\n", __func__);