mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
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
This commit is contained in:
parent
0bc49ce42b
commit
eade62fc49
1 changed files with 1 additions and 11 deletions
|
|
@ -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.
|
||||
*
|
||||
|
|
@ -260,11 +260,6 @@ int hdd_driver_memdump_init(void)
|
|||
int status;
|
||||
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);
|
||||
if (!hdd_ctx) {
|
||||
hdd_err("Invalid HDD context");
|
||||
|
|
@ -291,11 +286,6 @@ int hdd_driver_memdump_init(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_mem_cleanup();
|
||||
|
|
|
|||
Loading…
Reference in a new issue