All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 1/4] mwifiex: remove unnecessary wakeup interrupt number sanity check
@ 2017-04-13  6:48 Xinming Hu
  2017-04-13  6:48 ` [PATCH v4 2/4] mwifiex: fall back mwifiex_dbg to pr_info when adapter->dev not set Xinming Hu
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Xinming Hu @ 2017-04-13  6:48 UTC (permalink / raw)
  To: Linux Wireless
  Cc: Kalle Valo, Brian Norris, Dmitry Torokhov, rajatja,
	Amitkumar Karwar, Cathy Luo, Xinming Hu

From: Xinming Hu <huxm@marvell.com>

If wakeup interrupt handler is called, we know that the wakeup
interrupt number is valid, there is no need to check it.

Signed-off-by: Xinming Hu <huxm@marvell.com>
Signed-off-by: Cathy Luo <cluo@marvell.com>
Reviewed-by: Dmitry Torokhov <dtor@chromium.org>
Reviewed-by: Brian Norris <briannorris@chromium.org>
---
v2: modify description(Dimtry)
v4: same as v2, v3
---
 drivers/net/wireless/marvell/mwifiex/main.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/drivers/net/wireless/marvell/mwifiex/main.c b/drivers/net/wireless/marvell/mwifiex/main.c
index 0dfbac8..98fd491 100644
--- a/drivers/net/wireless/marvell/mwifiex/main.c
+++ b/drivers/net/wireless/marvell/mwifiex/main.c
@@ -1513,11 +1513,9 @@ static irqreturn_t mwifiex_irq_wakeup_handler(int irq, void *priv)
 {
 	struct mwifiex_adapter *adapter = priv;
 
-	if (adapter->irq_wakeup >= 0) {
-		dev_dbg(adapter->dev, "%s: wake by wifi", __func__);
-		adapter->wake_by_wifi = true;
-		disable_irq_nosync(irq);
-	}
+	dev_dbg(adapter->dev, "%s: wake by wifi", __func__);
+	adapter->wake_by_wifi = true;
+	disable_irq_nosync(irq);
 
 	/* Notify PM core we are wakeup source */
 	pm_wakeup_event(adapter->dev, 0);
-- 
1.8.1.4

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-04-20  7:21 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-13  6:48 [PATCH v4 1/4] mwifiex: remove unnecessary wakeup interrupt number sanity check Xinming Hu
2017-04-13  6:48 ` [PATCH v4 2/4] mwifiex: fall back mwifiex_dbg to pr_info when adapter->dev not set Xinming Hu
2017-04-13  6:48 ` [PATCH v4 3/4] mwifiex: pcie: correct scratch register name Xinming Hu
2017-04-13  6:48 ` [PATCH v4 4/4] mwifiex: pcie: extract wifi part from combo firmware during function level reset Xinming Hu
2017-04-13 13:58   ` Kalle Valo
2017-04-14  4:51     ` [EXT] " Xinming Hu
2017-04-13 18:46   ` Brian Norris
2017-04-13 20:10     ` [PATCH v5 " Brian Norris
2017-04-15  9:33       ` Xinming Hu
2017-04-20  7:21       ` [v5, " Kalle Valo
2017-04-20  7:18 ` [v4, 1/4] mwifiex: remove unnecessary wakeup interrupt number sanity check Kalle Valo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.