Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH] wl12xx: Allow wl12xx interrupts to wake up the host
@ 2011-02-07 11:30 juuso.oikarinen
  2011-02-07 12:09 ` Ohad Ben-Cohen
  0 siblings, 1 reply; 12+ messages in thread
From: juuso.oikarinen @ 2011-02-07 11:30 UTC (permalink / raw)
  To: coelho; +Cc: linux-wireless

From: Juuso Oikarinen <juuso.oikarinen@nokia.com>

Currently the wl12xx interrupts are not configured to wake up the host, which
leads to reduced performance.

Add calls to enable waking up the host for the wl12xx irq.

Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
---
 drivers/net/wireless/wl12xx/sdio.c |    2 ++
 drivers/net/wireless/wl12xx/spi.c  |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/net/wireless/wl12xx/sdio.c b/drivers/net/wireless/wl12xx/sdio.c
index d5e8748..fc0235a 100644
--- a/drivers/net/wireless/wl12xx/sdio.c
+++ b/drivers/net/wireless/wl12xx/sdio.c
@@ -84,12 +84,14 @@ static irqreturn_t wl1271_irq(int irq, void *cookie)
 
 static void wl1271_sdio_disable_interrupts(struct wl1271 *wl)
 {
+	disable_irq_wake(wl->irq);
 	disable_irq(wl->irq);
 }
 
 static void wl1271_sdio_enable_interrupts(struct wl1271 *wl)
 {
 	enable_irq(wl->irq);
+	enable_irq_wake(wl->irq);
 }
 
 static void wl1271_sdio_reset(struct wl1271 *wl)
diff --git a/drivers/net/wireless/wl12xx/spi.c b/drivers/net/wireless/wl12xx/spi.c
index 0132dad..85ad1bb 100644
--- a/drivers/net/wireless/wl12xx/spi.c
+++ b/drivers/net/wireless/wl12xx/spi.c
@@ -80,12 +80,14 @@ static struct device *wl1271_spi_wl_to_dev(struct wl1271 *wl)
 
 static void wl1271_spi_disable_interrupts(struct wl1271 *wl)
 {
+	disable_irq_wake(wl->irq);
 	disable_irq(wl->irq);
 }
 
 static void wl1271_spi_enable_interrupts(struct wl1271 *wl)
 {
 	enable_irq(wl->irq);
+	enable_irq_wake(wl->irq);
 }
 
 static void wl1271_spi_reset(struct wl1271 *wl)
-- 
1.7.1


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

end of thread, other threads:[~2011-02-08 12:38 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-07 11:30 [PATCH] wl12xx: Allow wl12xx interrupts to wake up the host juuso.oikarinen
2011-02-07 12:09 ` Ohad Ben-Cohen
2011-02-07 12:29   ` Juuso Oikarinen
2011-02-07 12:38     ` Ohad Ben-Cohen
2011-02-07 12:58       ` Juuso Oikarinen
2011-02-07 14:56         ` Ohad Ben-Cohen
2011-02-08  7:57           ` Juuso Oikarinen
2011-02-08  8:43             ` Ohad Ben-Cohen
2011-02-08 10:13             ` Kalle Valo
2011-02-08 11:13               ` Juuso Oikarinen
2011-02-08 11:47                 ` Kalle Valo
2011-02-08 12:38                   ` Juuso Oikarinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox