Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158798
b: refs/heads/master
c: 0d1c383
h: refs/heads/master
v: v3
  • Loading branch information
Luciano Coelho authored and John W. Linville committed Jul 10, 2009
1 parent ec4de34 commit b8341d6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a336e266640cd9f7be96b14ff09bbb37dfa646de
refs/heads/master: 0d1c38398fa8cd478a229b4428fb511f813376e8
2 changes: 2 additions & 0 deletions trunk/drivers/net/wireless/wl12xx/boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,8 @@ int wl12xx_boot_run_firmware(struct wl12xx *wl)
wl12xx_debug(DEBUG_MAILBOX, "cmd_box_addr 0x%x event_box_addr 0x%x",
wl->cmd_box_addr, wl->event_box_addr);

wl->chip.op_fw_version(wl);

/*
* in case of full asynchronous mode the firmware event must be
* ready to receive event from the command mailbox
Expand Down
9 changes: 6 additions & 3 deletions trunk/drivers/net/wireless/wl12xx/wl1251.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,6 @@ static int wl1251_boot(struct wl12xx *wl)
if (ret < 0)
goto out;

/* Get and save the firmware version */
wl12xx_acx_fw_version(wl, wl->chip.fw_ver, sizeof(wl->chip.fw_ver));

out:
return ret;
}
Expand Down Expand Up @@ -394,6 +391,11 @@ static void wl1251_target_enable_interrupts(struct wl12xx *wl)
wl12xx_boot_target_enable_interrupts(wl);
}

static void wl1251_fw_version(struct wl12xx *wl)
{
wl12xx_acx_fw_version(wl, wl->chip.fw_ver, sizeof(wl->chip.fw_ver));
}

static void wl1251_irq_work(struct work_struct *work)
{
u32 intr;
Expand Down Expand Up @@ -709,6 +711,7 @@ void wl1251_setup(struct wl12xx *wl)
wl->chip.op_target_enable_interrupts = wl1251_target_enable_interrupts;
wl->chip.op_hw_init = wl1251_hw_init;
wl->chip.op_plt_init = wl1251_plt_init;
wl->chip.op_fw_version = wl1251_fw_version;

wl->chip.p_table = wl1251_part_table;
wl->chip.acx_reg_table = wl1251_acx_reg_table;
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/net/wireless/wl12xx/wl12xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ struct wl12xx_chip {
void (*op_target_enable_interrupts)(struct wl12xx *wl);
int (*op_hw_init)(struct wl12xx *wl);
int (*op_plt_init)(struct wl12xx *wl);
void (*op_fw_version)(struct wl12xx *wl);

struct wl12xx_partition_set *p_table;
enum wl12xx_acx_int_reg *acx_reg_table;
Expand Down

0 comments on commit b8341d6

Please sign in to comment.