Commit a76b20e5 authored by Amitkumar Karwar's avatar Amitkumar Karwar Committed by John W. Linville
Browse files

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: default avatarAmitkumar Karwar <akarwar@marvell.com>
Signed-off-by: default avatarBing Zhao <bzhao@marvell.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent d00062e3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
		}
	}
+1 −1
Original line number Diff line number Diff line
@@ -927,7 +927,7 @@ static int mwifiex_check_fw_status(struct mwifiex_adapter *adapter,
			ret = 0;
			break;
		} else {
			mdelay(100);
			msleep(100);
			ret = -1;
		}
	}