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).
This commit is contained in:
parent
aa0ea4af6d
commit
7a6fab6656
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=223381
@ -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__);
|
||||
|
Loading…
Reference in New Issue
Block a user