cnss_prealloc: update prealloc mem pool based on device type

Update prealloc mem pool based on device type.

Change-Id: Ic7fc2145a0039aa55643672b8e125857c096a3ee
CRs-Fixed: 3459351
This commit is contained in:
Sandeep Singh
2023-03-06 13:32:08 +05:30
committed by Madan Koyyalamudi
parent 21bd3e2016
commit 97303bf330
9 changed files with 98 additions and 28 deletions

View File

@@ -4541,6 +4541,8 @@ static int icnss_probe(struct platform_device *pdev)
INIT_LIST_HEAD(&priv->clk_list);
icnss_allow_recursive_recovery(dev);
cnss_initialize_prealloc_pool(priv->device_id);
icnss_init_control_params(priv);
icnss_read_device_configs(priv);
@@ -4656,6 +4658,7 @@ smmu_cleanup:
out_free_resources:
icnss_put_resources(priv);
out_reset_drvdata:
cnss_deinitialize_prealloc_pool();
dev_set_drvdata(dev, NULL);
return ret;
}
@@ -4750,6 +4753,8 @@ static int icnss_remove(struct platform_device *pdev)
icnss_put_resources(priv);
cnss_deinitialize_prealloc_pool();
dev_set_drvdata(&pdev->dev, NULL);
return 0;