summaryrefslogtreecommitdiffstats
path: root/sys/dev/xl
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2011-06-21 20:51:09 +0000
committerimp <imp@FreeBSD.org>2011-06-21 20:51:09 +0000
commit3e1f21121771ff6c3f9865b1184a07144eadc8d6 (patch)
tree28a1d3c79b0ca47d49891e1cc818087cd7625cb8 /sys/dev/xl
parent4f07c4e7c9461b6a6a49882cf69513cadc9dd7c1 (diff)
downloadFreeBSD-src-3e1f21121771ff6c3f9865b1184a07144eadc8d6.zip
FreeBSD-src-3e1f21121771ff6c3f9865b1184a07144eadc8d6.tar.gz
Supress warning that command didn't complete when the parent bus
thinks the card is gone.
Diffstat (limited to 'sys/dev/xl')
-rw-r--r--sys/dev/xl/if_xl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/xl/if_xl.c b/sys/dev/xl/if_xl.c
index f1c1d02..355fa2d 100644
--- a/sys/dev/xl/if_xl.c
+++ b/sys/dev/xl/if_xl.c
@@ -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)
@@ -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");
}
OpenPOWER on IntegriCloud