From d955b38e8ced87ec4f25e6fa80e3e1c2cb0d3490 Mon Sep 17 00:00:00 2001 From: Arun Kumar Khandavalli Date: Wed, 13 Jan 2021 11:05:08 +0530 Subject: [PATCH] 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 --- core/cds/src/cds_api.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/cds/src/cds_api.c b/core/cds/src/cds_api.c index 7cbeb9ca4924..7f7b2a734ef1 100644 --- a/core/cds/src/cds_api.c +++ b/core/cds/src/cds_api.c @@ -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; }