wl1271: Fix event acknowledging functionality
In reference source, events are acknowledged separately - fix the driver to do the same. 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>
This commit is contained in:

committato da
John W. Linville

parent
a6fe231361
commit
13f2dc52c6
@@ -184,7 +184,7 @@ void wl1271_event_mbox_config(struct wl1271 *wl)
|
||||
wl->mbox_ptr[0], wl->mbox_ptr[1]);
|
||||
}
|
||||
|
||||
int wl1271_event_handle(struct wl1271 *wl, u8 mbox_num, bool do_ack)
|
||||
int wl1271_event_handle(struct wl1271 *wl, u8 mbox_num)
|
||||
{
|
||||
struct event_mailbox mbox;
|
||||
int ret;
|
||||
@@ -204,9 +204,7 @@ int wl1271_event_handle(struct wl1271 *wl, u8 mbox_num, bool do_ack)
|
||||
return ret;
|
||||
|
||||
/* then we let the firmware know it can go on...*/
|
||||
if (do_ack)
|
||||
wl1271_spi_write32(wl, ACX_REG_INTERRUPT_TRIG,
|
||||
INTR_TRIG_EVENT_ACK);
|
||||
wl1271_spi_write32(wl, ACX_REG_INTERRUPT_TRIG, INTR_TRIG_EVENT_ACK);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Fai riferimento in un nuovo problema
Block a user