diff options
author | Juuso Oikarinen <juuso.oikarinen@nokia.com> | 2010-02-22 01:38:37 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-03-09 15:03:03 -0500 |
commit | 1e73eb62cec7cf78b7295769b6e51a915518f5a1 (patch) | |
tree | 3a9cafedbe96d9953a9bcaee86bad9510c04dadf /drivers/net/wireless/wl12xx/wl1271_sdio.c | |
parent | 4aa05917051b01da037a80c3207b48aee252eed2 (diff) |
wl1271: Implement looped IRQ handling
This patch implements looped IRQ handling. In essence, if a new interrupt is
asserted by the FW while the host is processing the previous one, the host
will directly proceed processing the new IRQ without leaving the handling
function.
Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Reviewed-by: Teemu Paasikivi <ext-teemu.3.paasikivi@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1271_sdio.c')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_sdio.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_sdio.c b/drivers/net/wireless/wl12xx/wl1271_sdio.c index 7d7c85041859..1f204db30c27 100644 --- a/drivers/net/wireless/wl12xx/wl1271_sdio.c +++ b/drivers/net/wireless/wl12xx/wl1271_sdio.c | |||
@@ -75,7 +75,9 @@ static irqreturn_t wl1271_irq(int irq, void *cookie) | |||
75 | wl->elp_compl = NULL; | 75 | wl->elp_compl = NULL; |
76 | } | 76 | } |
77 | 77 | ||
78 | ieee80211_queue_work(wl->hw, &wl->irq_work); | 78 | if (!test_and_set_bit(WL1271_FLAG_IRQ_RUNNING, &wl->flags)) |
79 | ieee80211_queue_work(wl->hw, &wl->irq_work); | ||
80 | set_bit(WL1271_FLAG_IRQ_PENDING, &wl->flags); | ||
79 | spin_unlock_irqrestore(&wl->wl_lock, flags); | 81 | spin_unlock_irqrestore(&wl->wl_lock, flags); |
80 | 82 | ||
81 | return IRQ_HANDLED; | 83 | return IRQ_HANDLED; |