diff options
author | Arik Nemtsov <arik@wizery.com> | 2011-12-13 05:27:22 -0500 |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2012-04-12 01:44:01 -0400 |
commit | 5d10b1957d4dd7b5f854a224fb30cc564405d4d9 (patch) | |
tree | ae677460764da21efd328eb8e627267c29d21d1a /drivers/net/wireless/ti/wl12xx | |
parent | 8a9affc08d676a9fe627361ab6767cdec0740af3 (diff) |
wlcore/wl12xx: expand functionality of cmd_trigger HW op
Change the cmd_trigger op to include the write of the command buffer.
Also, instead of letting the lower driver access the cmd_box_addr element
directly, we now pass the address in the trigger_cmd operation, so it
doesn't have to be exported.
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/ti/wl12xx')
-rw-r--r-- | drivers/net/wireless/ti/wl12xx/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/ti/wl12xx/main.c b/drivers/net/wireless/ti/wl12xx/main.c index 564ca914bfcf..083e1d8be173 100644 --- a/drivers/net/wireless/ti/wl12xx/main.c +++ b/drivers/net/wireless/ti/wl12xx/main.c | |||
@@ -707,8 +707,10 @@ out: | |||
707 | return ret; | 707 | return ret; |
708 | } | 708 | } |
709 | 709 | ||
710 | static void wl12xx_trigger_cmd(struct wl1271 *wl) | 710 | static void wl12xx_trigger_cmd(struct wl1271 *wl, int cmd_box_addr, |
711 | void *buf, size_t len) | ||
711 | { | 712 | { |
713 | wl1271_write(wl, cmd_box_addr, buf, len, false); | ||
712 | wlcore_write_reg(wl, REG_INTERRUPT_TRIG, WL12XX_INTR_TRIG_CMD); | 714 | wlcore_write_reg(wl, REG_INTERRUPT_TRIG, WL12XX_INTR_TRIG_CMD); |
713 | } | 715 | } |
714 | 716 | ||