From: Avinash Patil Date: Sat, 23 Mar 2013 04:49:05 +0000 (-0700) Subject: mwifiex: do not enable PCIe interrupt in Power Save sleep state X-Git-Tag: v3.10-rc2~34^2~21^2^2~217 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b2fda1f6662681dc854ac902249a89d210cd5583;p=platform%2Fkernel%2Flinux-3.10.git 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 Signed-off-by: Bing Zhao Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/mwifiex/pcie.c b/drivers/net/wireless/mwifiex/pcie.c index 6283294..e62cd8a 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) } 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; }