From: juuso.oikarinen@nokia.com
To: coelho@ti.com
Cc: linux-wireless@vger.kernel.org
Subject: [PATCH] wl12xx: Allow wl12xx interrupts to wake up the host
Date: Mon, 7 Feb 2011 13:30:54 +0200 [thread overview]
Message-ID: <1297078254-4664-1-git-send-email-juuso.oikarinen@nokia.com> (raw)
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
next reply other threads:[~2011-02-07 11:31 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-07 11:30 juuso.oikarinen [this message]
2011-02-07 12:09 ` [PATCH] wl12xx: Allow wl12xx interrupts to wake up the host 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1297078254-4664-1-git-send-email-juuso.oikarinen@nokia.com \
--to=juuso.oikarinen@nokia.com \
--cc=coelho@ti.com \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox