projects
/
sdk
/
emulator
/
emulator-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50455ca
)
mwifiex: do not enable PCIe interrupt in Power Save sleep state
author
Avinash Patil
<patila@marvell.com>
Sat, 23 Mar 2013 04:49:05 +0000
(21:49 -0700)
committer
John W. Linville
<linville@tuxdriver.com>
Wed, 27 Mar 2013 17:37:32 +0000
(13:37 -0400)
Enabling PCIe host interrupt may accidently wake up the card
when it's in sleep.
Signed-off-by: Avinash Patil <patila@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
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/mwifiex/pcie.c
b/drivers/net/wireless/mwifiex/pcie.c
index 6283294398bf8cbc5b6c8f6891d83424897b2dfc..e62cd8a188980b75d95a38aeb29e131bc114024c 100644
(file)
--- a/
drivers/net/wireless/mwifiex/pcie.c
+++ b/
drivers/net/wireless/mwifiex/pcie.c
@@
-2111,7
+2111,8
@@
static int mwifiex_process_int_status(struct mwifiex_adapter *adapter)
}
dev_dbg(adapter->dev, "info: cmd_sent=%d data_sent=%d\n",
adapter->cmd_sent, adapter->data_sent);
- mwifiex_pcie_enable_host_int(adapter);
+ if (adapter->ps_state != PS_STATE_SLEEP)
+ mwifiex_pcie_enable_host_int(adapter);
return 0;
}