diff options
author | jhb <jhb@FreeBSD.org> | 2016-04-09 20:18:34 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2016-04-09 20:18:34 +0000 |
commit | c068b26cc6d12f0ebee2f24534a00b823e8020bb (patch) | |
tree | 9130f3be7ddb9d7b11417c98dd3fa1d6c3755725 | |
parent | 29cd60d86a00dcefdbec7360417eb01ae82de66f (diff) | |
download | FreeBSD-src-c068b26cc6d12f0ebee2f24534a00b823e8020bb.zip FreeBSD-src-c068b26cc6d12f0ebee2f24534a00b823e8020bb.tar.gz |
Use DELAY() instead of sleeping during boot-time attach.
Tested by: Wolfgang Zenker <wolfgang@lyxys.ka.sub.org>
-rw-r--r-- | sys/dev/ichiic/ig4_iic.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/ichiic/ig4_iic.c b/sys/dev/ichiic/ig4_iic.c index a556127..23bdb7d 100644 --- a/sys/dev/ichiic/ig4_iic.c +++ b/sys/dev/ichiic/ig4_iic.c @@ -117,7 +117,10 @@ set_controller(ig4iic_softc_t *sc, uint32_t ctl) error = 0; break; } - mtx_sleep(sc, &sc->io_lock, 0, "i2cslv", 1); + if (cold) + DELAY(1000); + else + mtx_sleep(sc, &sc->io_lock, 0, "i2cslv", 1); } return (error); } |