mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
icnss2: Free QDSS memory on every SSR
Free QDSS memory on every SSR and allocate it again when QDSS trace memory indication is received from FW. Change-Id: I1f4ed9dbfc597407992d2484deaf3767ce0d6c3c Signed-off-by: Naman Padhiar <npadhiar@codeaurora.org>
This commit is contained in:
parent
9c25b4600c
commit
c7d8b088a7
2 changed files with 4 additions and 0 deletions
|
|
@ -806,6 +806,9 @@ static int icnss_driver_event_fw_ready_ind(struct icnss_priv *priv, void *data)
|
|||
set_bit(ICNSS_FW_READY, &priv->state);
|
||||
clear_bit(ICNSS_MODE_ON, &priv->state);
|
||||
|
||||
if (priv->device_id == WCN6750_DEVICE_ID)
|
||||
icnss_free_qdss_mem(priv);
|
||||
|
||||
icnss_pr_info("WLAN FW is ready: 0x%lx\n", priv->state);
|
||||
|
||||
icnss_hw_power_off(priv);
|
||||
|
|
|
|||
|
|
@ -446,6 +446,7 @@ struct icnss_reg_info {
|
|||
uint32_t data_len;
|
||||
};
|
||||
|
||||
void icnss_free_qdss_mem(struct icnss_priv *priv);
|
||||
char *icnss_driver_event_to_str(enum icnss_driver_event_type type);
|
||||
int icnss_call_driver_uevent(struct icnss_priv *priv,
|
||||
enum icnss_uevent uevent, void *data);
|
||||
|
|
|
|||
Loading…
Reference in a new issue