qcacld-3.0: Remove check to disable memdump for FTM mode
During init and deinit, the driver performs memdymp_init and memdump_deinit. These are not done for the case when driver is in FTM mode. In the present scenario, unloading the driver while in FTM mode and then reloading causes problem. Allow memdump_init and memdump_deinit to occur while the driver is in FTM mode. Change-Id: I4bed1bf76ee19612da9c27fe6cebb586ef7e542b CRs-Fixed: 2170695
这个提交包含在:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2016-2017 The Linux Foundation. All rights reserved.
|
* Copyright (c) 2016-2018 The Linux Foundation. All rights reserved.
|
||||||
*
|
*
|
||||||
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
|
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
|
||||||
*
|
*
|
||||||
@@ -260,11 +260,6 @@ int hdd_driver_memdump_init(void)
|
|||||||
int status;
|
int status;
|
||||||
struct hdd_context *hdd_ctx;
|
struct hdd_context *hdd_ctx;
|
||||||
|
|
||||||
if (hdd_get_conparam() == QDF_GLOBAL_FTM_MODE) {
|
|
||||||
hdd_err("Not initializing memdump in FTM mode");
|
|
||||||
return -EINVAL;
|
|
||||||
}
|
|
||||||
|
|
||||||
hdd_ctx = cds_get_context(QDF_MODULE_ID_HDD);
|
hdd_ctx = cds_get_context(QDF_MODULE_ID_HDD);
|
||||||
if (!hdd_ctx) {
|
if (!hdd_ctx) {
|
||||||
hdd_err("Invalid HDD context");
|
hdd_err("Invalid HDD context");
|
||||||
@@ -291,11 +286,6 @@ int hdd_driver_memdump_init(void)
|
|||||||
*/
|
*/
|
||||||
void hdd_driver_memdump_deinit(void)
|
void hdd_driver_memdump_deinit(void)
|
||||||
{
|
{
|
||||||
if (hdd_get_conparam() == QDF_GLOBAL_FTM_MODE) {
|
|
||||||
hdd_err("Not deinitializing memdump in FTM mode");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
hdd_driver_memdump_procfs_remove();
|
hdd_driver_memdump_procfs_remove();
|
||||||
|
|
||||||
hdd_driver_mem_cleanup();
|
hdd_driver_mem_cleanup();
|
||||||
|
在新工单中引用
屏蔽一个用户