]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: replace mdelay with msleep
authorAmitkumar Karwar <akarwar@marvell.com>
Tue, 23 Jul 2013 02:17:53 +0000 (19:17 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 24 Jul 2013 15:02:10 +0000 (11:02 -0400)
commit0924adb45236496536425dd3f5a43d43d90f35f0
treed431fea52d46183645b01452e990bcbcef869bba
parent7b18f87ffa9771e382b1f822e22b956795090e5f
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>
drivers/net/wireless/mwifiex/pcie.c
drivers/net/wireless/mwifiex/sdio.c