Search Linux Wireless

[PATCH] wl12xx: Allow wl12xx interrupts to wake up the host

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Juuso Oikarinen <juuso.oikarinen@xxxxxxxxx>

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@xxxxxxxxx>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux