cnss2: Add CONFIG_DISABLE_CNSS_SRAM_DUMP

It costs 4M when loading cnss2, if device id is QCA6490 and enabled
CONFIG_CNSS2_DEBUG. Which is big memory consumption for low rate issue
debugging. So add CONFIG_DISABLE_CNSS_SRAM_DUMP to disable sram_dump.

Change-Id: Iacf338a3cc8f1583e16034a9873029a450fd254a
CRs-Fixed: 3441274
This commit is contained in:
Wu Gao
2023-03-21 05:19:48 -07:00
parent ddbe3d0e4e
commit 3ef55a9a08
5 changed files with 49 additions and 4 deletions

View File

@@ -1693,6 +1693,11 @@ static void cnss_pci_dump_bl_sram_mem(struct cnss_pci_data *pci_priv)
}
}
#ifdef CONFIG_DISABLE_CNSS_SRAM_DUMP
static void cnss_pci_dump_sram(struct cnss_pci_data *pci_priv)
{
}
#else
static void cnss_pci_dump_sram(struct cnss_pci_data *pci_priv)
{
struct cnss_plat_data *plat_priv;
@@ -1727,6 +1732,7 @@ static void cnss_pci_dump_sram(struct cnss_pci_data *pci_priv)
cond_resched();
}
}
#endif
static int cnss_pci_handle_mhi_poweron_timeout(struct cnss_pci_data *pci_priv)
{