Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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).
  • Loading branch information...
commit 01e762e9c428308261260981926cd63cb0f6dd7b 1 parent 153ff49
imp authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  sys/dev/dc/if_dc.c
View
2  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__);
Please sign in to comment.
Something went wrong with that request. Please try again.