wil6210: clear FW and ucode log address
Clear the FW and ucode log address on device initialization to allow user space app identify when the address was set by FW/ucode and it can start read. Signed-off-by: Tzahi Sabo <stzahi@codeaurora.org> Signed-off-by: Maya Erez <merez@codeaurora.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
这个提交包含在:
@@ -1522,6 +1522,7 @@ int wil_ps_update(struct wil6210_priv *wil, enum wmi_ps_profile_type ps_profile)
|
||||
|
||||
static void wil_pre_fw_config(struct wil6210_priv *wil)
|
||||
{
|
||||
wil_clear_fw_log_addr(wil);
|
||||
/* Mark FW as loaded from host */
|
||||
wil_s(wil, RGF_USER_USAGE_6, 1);
|
||||
|
||||
@@ -1578,6 +1579,20 @@ static int wil_restore_vifs(struct wil6210_priv *wil)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Clear FW and ucode log start addr to indicate FW log is not ready. The host
|
||||
* driver clears the addresses before FW starts and FW initializes the address
|
||||
* when it is ready to send logs.
|
||||
*/
|
||||
void wil_clear_fw_log_addr(struct wil6210_priv *wil)
|
||||
{
|
||||
/* FW log addr */
|
||||
wil_w(wil, RGF_USER_USAGE_1, 0);
|
||||
/* ucode log addr */
|
||||
wil_w(wil, RGF_USER_USAGE_2, 0);
|
||||
wil_dbg_misc(wil, "Cleared FW and ucode log address");
|
||||
}
|
||||
|
||||
/*
|
||||
* We reset all the structures, and we reset the UMAC.
|
||||
* After calling this routine, you're expected to reload
|
||||
|
在新工单中引用
屏蔽一个用户