summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwifiex/init.c
diff options
context:
space:
mode:
authorAmitkumar Karwar <akarwar@marvell.com>2013-07-23 04:17:52 +0200
committerJohn W. Linville <linville@tuxdriver.com>2013-07-24 17:02:09 +0200
commitd00062e318b1e4a4bec8a8e343efe8bc92d3b109 (patch)
treea469ef7b9af008345a8710f15b74e34bc45ded7d /drivers/net/wireless/mwifiex/init.c
parentmwifiex: add unregister_dev handler for usb interface (diff)
downloadlinux-d00062e318b1e4a4bec8a8e343efe8bc92d3b109.tar.xz
linux-d00062e318b1e4a4bec8a8e343efe8bc92d3b109.zip
mwifiex: reduce firmware poll retries
After downloading the firmware, firmware status is checked by reading a register. Polling interval is 100 msecs. Therefore 100 retries means the status is checked for 10 secs which is more than sufficient for firmware to get ready. This patch removes 1000 retries macro usage, because 100secs time is not practical. 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/init.c')
-rw-r--r--drivers/net/wireless/mwifiex/init.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/init.c b/drivers/net/wireless/mwifiex/init.c
index 2ef450e99c75..e4c5ae34c6a8 100644
--- a/drivers/net/wireless/mwifiex/init.c
+++ b/drivers/net/wireless/mwifiex/init.c
@@ -691,7 +691,6 @@ int mwifiex_dnld_fw(struct mwifiex_adapter *adapter,
if (!adapter->winner) {
dev_notice(adapter->dev,
"FW already running! Skip FW dnld\n");
- poll_num = MAX_MULTI_INTERFACE_POLL_TRIES;
goto poll_fw;
}
}