提交 58b70335 编写于 作者: B Brian Norris 提交者: Kalle Valo

mwifiex: usb: handle HS failures

SDIO and PCIe drivers handle this. Let's imitate it.
Signed-off-by: NBrian Norris <briannorris@chromium.org>
Tested-by: NXinming Hu <huxm@marvell.com>
Signed-off-by: NAmitkumar Karwar <akarwar@marvell.com>
Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
上级 bcf28a2f
...@@ -521,7 +521,14 @@ static int mwifiex_usb_suspend(struct usb_interface *intf, pm_message_t message) ...@@ -521,7 +521,14 @@ static int mwifiex_usb_suspend(struct usb_interface *intf, pm_message_t message)
mwifiex_dbg(adapter, WARN, mwifiex_dbg(adapter, WARN,
"Device already suspended\n"); "Device already suspended\n");
mwifiex_enable_hs(adapter); /* Enable the Host Sleep */
if (!mwifiex_enable_hs(adapter)) {
mwifiex_dbg(adapter, ERROR,
"cmd: failed to suspend\n");
adapter->hs_enabling = false;
return -EFAULT;
}
/* 'is_suspended' flag indicates device is suspended. /* 'is_suspended' flag indicates device is suspended.
* It must be set here before the usb_kill_urb() calls. Reason * It must be set here before the usb_kill_urb() calls. Reason
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册