summaryrefslogtreecommitdiffstats
path: root/sys/dev/dc
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2011-06-21 20:52:55 +0000
committerimp <imp@FreeBSD.org>2011-06-21 20:52:55 +0000
commit9bd4b3fa750e150be12f83324afa42ab889d6266 (patch)
treecbdf062430de79455ee5bdf10a08a1cd09dee246 /sys/dev/dc
parent3e1f21121771ff6c3f9865b1184a07144eadc8d6 (diff)
downloadFreeBSD-src-9bd4b3fa750e150be12f83324afa42ab889d6266.zip
FreeBSD-src-9bd4b3fa750e150be12f83324afa42ab889d6266.tar.gz
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).
Diffstat (limited to 'sys/dev/dc')
-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 772eede..b9567de 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__);
OpenPOWER on IntegriCloud