|
@@ -3840,7 +3840,9 @@ static int cnss_misc_init(struct cnss_plat_data *plat_priv)
|
|
|
cnss_pr_err("QMI IPC connection call back register failed, err = %d\n",
|
|
|
ret);
|
|
|
|
|
|
- plat_priv->sram_dump = kcalloc(SRAM_DUMP_SIZE, 1, GFP_KERNEL);
|
|
|
+ if (plat_priv->device_id == QCA6490_DEVICE_ID &&
|
|
|
+ cnss_get_host_build_type() == QMI_HOST_BUILD_TYPE_PRIMARY_V01)
|
|
|
+ plat_priv->sram_dump = kcalloc(SRAM_DUMP_SIZE, 1, GFP_KERNEL);
|
|
|
|
|
|
return 0;
|
|
|
}
|