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>
This commit is contained in:

committed by
John W. Linville

parent
2739a95d70
commit
d00062e318
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user