diff options
author | Amitkumar Karwar <akarwar@marvell.com> | 2013-07-22 19:17:53 -0700 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-07-24 11:02:10 -0400 |
commit | a76b20e5ca8a9ec0b45a4150b4ad19e27dd19699 (patch) | |
tree | d431fea52d46183645b01452e990bcbcef869bba /drivers/net/wireless/mwifiex/sdio.c | |
parent | d00062e318b1e4a4bec8a8e343efe8bc92d3b109 (diff) | |
download | lwn-a76b20e5ca8a9ec0b45a4150b4ad19e27dd19699.tar.gz lwn-a76b20e5ca8a9ec0b45a4150b4ad19e27dd19699.zip |
mwifiex: replace mdelay with msleep
It is observed that when wrong firmware is downloaded for
PCIe card, system hangs for 10 seconds. The reason is mdelay()
is used when firmware status is polled.
Replace mdelay with msleep(non-blocking API) to fix the issue.
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/sdio.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/sdio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/sdio.c b/drivers/net/wireless/mwifiex/sdio.c index 5ee5ed02eccd..14ac51fd7d3c 100644 --- a/drivers/net/wireless/mwifiex/sdio.c +++ b/drivers/net/wireless/mwifiex/sdio.c @@ -927,7 +927,7 @@ static int mwifiex_check_fw_status(struct mwifiex_adapter *adapter, ret = 0; break; } else { - mdelay(100); + msleep(100); ret = -1; } } |