diff options
author | Avinash Patil <patila@marvell.com> | 2013-03-23 00:49:05 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-03-27 13:37:32 -0400 |
commit | b2fda1f6662681dc854ac902249a89d210cd5583 (patch) | |
tree | 582d42308a81e8038214ba01419f42f61465ff85 /drivers/net/wireless/mwifiex/pcie.c | |
parent | 50455cac91740659127704c537250904ffdc9ed0 (diff) |
mwifiex: do not enable PCIe interrupt in Power Save sleep state
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>
Diffstat (limited to 'drivers/net/wireless/mwifiex/pcie.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/pcie.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/pcie.c b/drivers/net/wireless/mwifiex/pcie.c index 6283294398bf..e62cd8a18898 100644 --- 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) | |||
2111 | } | 2111 | } |
2112 | dev_dbg(adapter->dev, "info: cmd_sent=%d data_sent=%d\n", | 2112 | dev_dbg(adapter->dev, "info: cmd_sent=%d data_sent=%d\n", |
2113 | adapter->cmd_sent, adapter->data_sent); | 2113 | adapter->cmd_sent, adapter->data_sent); |
2114 | mwifiex_pcie_enable_host_int(adapter); | 2114 | if (adapter->ps_state != PS_STATE_SLEEP) |
2115 | mwifiex_pcie_enable_host_int(adapter); | ||
2115 | 2116 | ||
2116 | return 0; | 2117 | return 0; |
2117 | } | 2118 | } |