qcacld-3.0: suppot WHUNT for CMEM allocation

support WHUNT for CMEM allocation.

Change-Id: I2e28a39bdc5a910526707bc278e6e4a7b08d703f
CRs-Fixed: 2929515
这个提交包含在:
Jinwei Chen
2021-03-16 02:57:42 -07:00
提交者 Madan Koyyalamudi
父节点 181b3aefb2
当前提交 b01dccdb52

查看文件

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2016-2020 The Linux Foundation. All rights reserved.
* Copyright (c) 2016-2021 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -705,7 +705,7 @@ int pld_pcie_fw_sim_wlan_disable(struct device *dev, enum pld_driver_mode mode)
*/
int pld_pcie_fw_sim_get_soc_info(struct device *dev, struct pld_soc_info *info)
{
int ret = 0;
int ret = 0, i;
struct cnss_soc_info cnss_info = {0};
if (!info)
@@ -732,6 +732,10 @@ int pld_pcie_fw_sim_get_soc_info(struct device *dev, struct pld_soc_info *info)
cnss_info.device_version.major_version;
info->device_version.minor_version =
cnss_info.device_version.minor_version;
for (i = 0; i < PLD_MAX_DEV_MEM_NUM; i++) {
info->dev_mem_info[i].start = cnss_info.dev_mem_info[i].start;
info->dev_mem_info[i].size = cnss_info.dev_mem_info[i].size;
}
return 0;
}