diff options
author | Dan Williams <dcbw@redhat.com> | 2010-04-28 12:37:46 -0700 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-04-28 16:49:23 -0400 |
commit | ca962557c2f2aa14f8032006ce17ebb4ff73db55 (patch) | |
tree | 2535cea967c6c8efc8280f064fda9236c7b63814 /drivers/net/wireless/libertas/if_sdio.c | |
parent | 446cfaa412beef0dd6cb0edf3b4eaed34d824537 (diff) | |
download | op-kernel-dev-ca962557c2f2aa14f8032006ce17ebb4ff73db55.zip op-kernel-dev-ca962557c2f2aa14f8032006ce17ebb4ff73db55.tar.gz |
libertas: fix 8686 firmware loading regression
The 'ready' condition was incorrectly evaluated which sometimes lead to
failures loading the second-stage firmware on 8686 devices.
(This was introduced in "libertas: consolidate SDIO firmware wait code".
-- JWL)
Signed-off-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/if_sdio.c')
-rw-r--r-- | drivers/net/wireless/libertas/if_sdio.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/libertas/if_sdio.c b/drivers/net/wireless/libertas/if_sdio.c index 68cc407..094176e 100644 --- a/drivers/net/wireless/libertas/if_sdio.c +++ b/drivers/net/wireless/libertas/if_sdio.c @@ -323,7 +323,9 @@ static int if_sdio_wait_status(struct if_sdio_card *card, const u8 condition) timeout = jiffies + HZ; while (1) { status = sdio_readb(card->func, IF_SDIO_STATUS, &ret); - if (ret || (status & condition)) + if (ret) + return ret; + if ((status & condition) == condition) break; if (time_after(jiffies, timeout)) return -ETIMEDOUT; |