projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bcf28a2
)
mwifiex: usb: handle HS failures
author
Brian Norris
<
[email protected]
>
Fri, 18 Nov 2016 14:00:31 +0000
(19:30 +0530)
committer
Kalle Valo
<
[email protected]
>
Sat, 19 Nov 2016 07:18:51 +0000
(09:18 +0200)
SDIO and PCIe drivers handle this. Let's imitate it.
Signed-off-by: Brian Norris <
[email protected]
>
Tested-by: Xinming Hu <
[email protected]
>
Signed-off-by: Amitkumar Karwar <
[email protected]
>
Signed-off-by: Kalle Valo <
[email protected]
>
drivers/net/wireless/marvell/mwifiex/usb.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/marvell/mwifiex/usb.c
b/drivers/net/wireless/marvell/mwifiex/usb.c
index 64a40205201d12507b05be5033ff5db2ce79d8b2..55e3a01ccc3020ef130e0f26eafdee696ae8b06a 100644
(file)
--- a/
drivers/net/wireless/marvell/mwifiex/usb.c
+++ b/
drivers/net/wireless/marvell/mwifiex/usb.c
@@
-521,7
+521,14
@@
static int mwifiex_usb_suspend(struct usb_interface *intf, pm_message_t message)
mwifiex_dbg(adapter, WARN,
"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.
* It must be set here before the usb_kill_urb() calls. Reason