mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
qcacld-3.0: Debug the reason for recovery during driver unload
During the driver unload whenever the recovery is triggered in the current implementation the request is silently dropped, this is resulting issues in other areas during the driver which is making it harder to debug the issue. Trigger system panic to debug the reason for recovery during the driver unload. Change-Id: I67c6c7e8b19dcc3371cd6691c0e3f19be4c33c46 CRs-Fixed: 2850591
This commit is contained in:
parent
5fb91f4a4d
commit
d955b38e8c
1 changed files with 3 additions and 3 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2012-2020 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2012-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
|
||||
|
|
@ -1934,9 +1934,9 @@ static void cds_trigger_recovery_handler(const char *func, const uint32_t line)
|
|||
return;
|
||||
}
|
||||
|
||||
/* ignore recovery if we are unloading; it would be a waste anyway */
|
||||
if (cds_is_driver_unloading()) {
|
||||
cds_info("WLAN is unloading; ignore recovery");
|
||||
QDF_DEBUG_PANIC("WLAN is unloading recovery not expected(via %s:%d)",
|
||||
func, line);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue