diff options
| author | Scott Long <scottl@FreeBSD.org> | 2008-07-20 16:50:14 +0000 |
|---|---|---|
| committer | Scott Long <scottl@FreeBSD.org> | 2008-07-20 16:50:14 +0000 |
| commit | 92130a8f2e95df269d9d237ebeaa13a01b605ad8 (patch) | |
| tree | 80f5c2634d74aecef1fb7095ed83556383185e72 /sys/dev | |
| parent | 41698ebf5bc08dc6e32cfc8d06b8837dd19ee7d9 (diff) | |
Notes
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/amr/amr.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/amr/amr.c b/sys/dev/amr/amr.c index b394950a507f..d586a367ce24 100644 --- a/sys/dev/amr/amr.c +++ b/sys/dev/amr/amr.c @@ -2082,8 +2082,11 @@ amr_quartz_submit_command(struct amr_command *ac) int i = 0; mtx_lock(&sc->amr_hw_lock); - while (sc->amr_mailbox->mb_busy && (i++ < 10)) + while (sc->amr_mailbox->mb_busy && (i++ < 10)) { DELAY(1); + /* This is a no-op read that flushes pending mailbox updates */ + AMR_QGET_ODB(sc); + } if (sc->amr_mailbox->mb_busy) { mtx_unlock(&sc->amr_hw_lock); if (ac->ac_retries++ > 1000) { |
