Skip to content

Commit

Permalink
Supress warning that command didn't complete when the parent bus
Browse files Browse the repository at this point in the history
thinks the card is gone.
  • Loading branch information
bsdimp committed Jun 21, 2011
1 parent febf9e1 commit 153ff49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sys/dev/xl/if_xl.c
Expand Up @@ -334,7 +334,7 @@ xl_dma_map_addr(void *arg, bus_dma_segment_t *segs, int nseg, int error)
* only a finite amount of time to avoid getting caught in an
* infinite loop. Normally this delay routine would be a macro,
* but it isn't called during normal operation so we can afford
* to make it a function.
* to make it a function. Spress warning when card gone.
*/
static void
xl_wait(struct xl_softc *sc)
Expand All @@ -346,7 +346,7 @@ xl_wait(struct xl_softc *sc)
break;
}

if (i == XL_TIMEOUT)
if (i == XL_TIMEOUT && bus_child_present(sc->xl_dev))
device_printf(sc->xl_dev, "command never completed!\n");
}

Expand Down

0 comments on commit 153ff49

Please sign in to comment.