summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwifiex/pcie.c
diff options
context:
space:
mode:
authorAmitkumar Karwar <akarwar@marvell.com>2013-07-23 04:17:53 +0200
committerJohn W. Linville <linville@tuxdriver.com>2013-07-24 17:02:10 +0200
commita76b20e5ca8a9ec0b45a4150b4ad19e27dd19699 (patch)
treed431fea52d46183645b01452e990bcbcef869bba /drivers/net/wireless/mwifiex/pcie.c
parentmwifiex: reduce firmware poll retries (diff)
downloadlinux-a76b20e5ca8a9ec0b45a4150b4ad19e27dd19699.tar.xz
linux-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/pcie.c')
-rw-r--r--drivers/net/wireless/mwifiex/pcie.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/pcie.c b/drivers/net/wireless/mwifiex/pcie.c
index dce648682694..098153f14e18 100644
--- a/drivers/net/wireless/mwifiex/pcie.c
+++ b/drivers/net/wireless/mwifiex/pcie.c
@@ -1942,7 +1942,7 @@ mwifiex_check_fw_status(struct mwifiex_adapter *adapter, u32 poll_num)
ret = 0;
break;
} else {
- mdelay(100);
+ msleep(100);
ret = -1;
}
}