cnss2: Free m3 blob memory once driver probed
Free m3 blob memory after driver probed. Change-Id: I10803eae60f2308b3a024877cdb7c446f3d33802 CRs-Fixed: 3321438
This commit is contained in:
12
cnss2/pci.c
12
cnss2/pci.c
@@ -2351,6 +2351,7 @@ int cnss_pci_call_driver_probe(struct cnss_pci_data *pci_priv)
|
||||
}
|
||||
clear_bit(CNSS_DRIVER_LOADING, &plat_priv->driver_state);
|
||||
set_bit(CNSS_DRIVER_PROBED, &plat_priv->driver_state);
|
||||
cnss_pci_free_blob_mem(pci_priv);
|
||||
complete_all(&plat_priv->power_up_complete);
|
||||
} else if (test_bit(CNSS_DRIVER_IDLE_RESTART,
|
||||
&plat_priv->driver_state)) {
|
||||
@@ -4353,6 +4354,17 @@ static void cnss_pci_free_m3_mem(struct cnss_pci_data *pci_priv)
|
||||
m3_mem->size = 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_FREE_M3_BLOB_MEM
|
||||
void cnss_pci_free_blob_mem(struct cnss_pci_data *pci_priv)
|
||||
{
|
||||
cnss_pci_free_m3_mem(pci_priv);
|
||||
}
|
||||
#else
|
||||
void cnss_pci_free_blob_mem(struct cnss_pci_data *pci_priv)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
void cnss_pci_fw_boot_timeout_hdlr(struct cnss_pci_data *pci_priv)
|
||||
{
|
||||
struct cnss_plat_data *plat_priv;
|
||||
|
@@ -232,6 +232,7 @@ int cnss_pci_alloc_fw_mem(struct cnss_pci_data *pci_priv);
|
||||
int cnss_pci_alloc_qdss_mem(struct cnss_pci_data *pci_priv);
|
||||
void cnss_pci_free_qdss_mem(struct cnss_pci_data *pci_priv);
|
||||
int cnss_pci_load_m3(struct cnss_pci_data *pci_priv);
|
||||
void cnss_pci_free_blob_mem(struct cnss_pci_data *pci_priv);
|
||||
int cnss_pci_handle_dev_sol_irq(struct cnss_pci_data *pci_priv);
|
||||
int cnss_pci_start_mhi(struct cnss_pci_data *pci_priv);
|
||||
void cnss_pci_collect_dump_info(struct cnss_pci_data *pci_priv, bool in_panic);
|
||||
|
Reference in New Issue
Block a user