mirror of
https://github.com/torvalds/linux.git
synced 2024-12-14 23:25:54 +00:00
mwifiex: fix system hang problem after resume
On some platforms, driver is unable to wakeup firmware after system resume due to a problem at MMC subsystem. Triggering card reset in this case has a race with card removal from MMC which causes system hang. This patch resolves the problem by not triggering card reset. Signed-off-by: Amitkumar Karwar <akarwar@marvell.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
dec277f781
commit
437322ea2a
@ -60,7 +60,7 @@ static void wakeup_timer_fn(unsigned long data)
|
||||
adapter->hw_status = MWIFIEX_HW_STATUS_RESET;
|
||||
mwifiex_cancel_all_pending_cmd(adapter);
|
||||
|
||||
if (adapter->if_ops.card_reset)
|
||||
if (adapter->if_ops.card_reset && !adapter->hs_activated)
|
||||
adapter->if_ops.card_reset(adapter);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user