diff options
author | Juuso Oikarinen <juuso.oikarinen@nokia.com> | 2009-10-13 05:47:54 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-27 16:48:11 -0400 |
commit | 1fd2794f36913992798184c464fe8f85753b13e0 (patch) | |
tree | cce0edbd8bb37635a67771aa53b602db1f4b2fb2 /drivers/net/wireless/wl12xx/wl1271_event.c | |
parent | 7444113017b9d5394dc8c4bdf577f9567502417b (diff) |
wl1271: Fix event handling mechanism
The event handling mechanism could miss events if multiple events would
occur simultaneously. Fix event handling mechanism to process all
events.
Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Reviewed-by: Luciano Coelho <luciano.coelho@nokia.com>
Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1271_event.c')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_event.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_event.c b/drivers/net/wireless/wl12xx/wl1271_event.c index e2d7758ba1c9..a4b11e43f0db 100644 --- a/drivers/net/wireless/wl12xx/wl1271_event.c +++ b/drivers/net/wireless/wl12xx/wl1271_event.c | |||
@@ -126,7 +126,7 @@ void wl1271_event_mbox_config(struct wl1271 *wl) | |||
126 | wl->mbox_ptr[0], wl->mbox_ptr[1]); | 126 | wl->mbox_ptr[0], wl->mbox_ptr[1]); |
127 | } | 127 | } |
128 | 128 | ||
129 | int wl1271_event_handle(struct wl1271 *wl, u8 mbox_num) | 129 | int wl1271_event_handle(struct wl1271 *wl, u8 mbox_num, bool do_ack) |
130 | { | 130 | { |
131 | struct event_mailbox mbox; | 131 | struct event_mailbox mbox; |
132 | int ret; | 132 | int ret; |
@@ -146,7 +146,9 @@ int wl1271_event_handle(struct wl1271 *wl, u8 mbox_num) | |||
146 | return ret; | 146 | return ret; |
147 | 147 | ||
148 | /* then we let the firmware know it can go on...*/ | 148 | /* then we let the firmware know it can go on...*/ |
149 | wl1271_spi_write32(wl, ACX_REG_INTERRUPT_TRIG, INTR_TRIG_EVENT_ACK); | 149 | if (do_ack) |
150 | wl1271_spi_write32(wl, ACX_REG_INTERRUPT_TRIG, | ||
151 | INTR_TRIG_EVENT_ACK); | ||
150 | 152 | ||
151 | return 0; | 153 | return 0; |
152 | } | 154 | } |