summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ti/wlcore/event.c
diff options
context:
space:
mode:
authorLuciano Coelho <coelho@ti.com>2012-04-11 07:15:46 (GMT)
committerLuciano Coelho <coelho@ti.com>2012-04-12 05:43:57 (GMT)
commitf16ff75872b04fa6c779367ae24146c8a1729f2e (patch)
tree05e21d99615ee1312ce91edecc7c47b575398959 /drivers/net/wireless/ti/wlcore/event.c
parent30d9b4a58bc168620eed0fc6d90b2f05cd02a462 (diff)
downloadlinux-fsl-qoriq-f16ff75872b04fa6c779367ae24146c8a1729f2e.tar.xz
wlcore/wl12xx: add command trigger and event ack operations
Different chips may use different bits in the interrupt trigger register. Add operations to handle these differences. Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/ti/wlcore/event.c')
-rw-r--r--drivers/net/wireless/ti/wlcore/event.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/net/wireless/ti/wlcore/event.c b/drivers/net/wireless/ti/wlcore/event.c
index 078cb01..e3f572c 100644
--- a/drivers/net/wireless/ti/wlcore/event.c
+++ b/drivers/net/wireless/ti/wlcore/event.c
@@ -305,8 +305,11 @@ int wl1271_event_handle(struct wl1271 *wl, u8 mbox_num)
if (ret < 0)
return ret;
- /* then we let the firmware know it can go on...*/
- wlcore_write_reg(wl, REG_INTERRUPT_TRIG, INTR_TRIG_EVENT_ACK);
+ /*
+ * TODO: we just need this because one bit is in a different
+ * place. Is there any better way?
+ */
+ wl->ops->ack_event(wl);
return 0;
}