qcacld-3.0: Disable dsc panic if fw is down
If fw is down, there is no point to dsc panic. Thus, disable dsc panic if fw is down. Change-Id: I1128ea3f32b879305e19fdf45a6e3588a570bd4c CRs-Fixed: 2535312
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2018 The Linux Foundation. All rights reserved.
|
* Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for
|
* Permission to use, copy, modify, and/or distribute this software for
|
||||||
* any purpose with or without fee is hereby granted, provided that the
|
* any purpose with or without fee is hereby granted, provided that the
|
||||||
@@ -23,6 +23,7 @@
|
|||||||
#include "qdf_threads.h"
|
#include "qdf_threads.h"
|
||||||
#include "qdf_timer.h"
|
#include "qdf_timer.h"
|
||||||
#include "__wlan_dsc.h"
|
#include "__wlan_dsc.h"
|
||||||
|
#include "cds_api.h"
|
||||||
|
|
||||||
#ifdef WLAN_DSC_DEBUG
|
#ifdef WLAN_DSC_DEBUG
|
||||||
static void __dsc_dbg_op_timeout(void *opaque_op)
|
static void __dsc_dbg_op_timeout(void *opaque_op)
|
||||||
@@ -179,6 +180,10 @@ static void __dsc_dbg_trans_timeout(void *opaque_trans)
|
|||||||
struct dsc_trans *trans = opaque_trans;
|
struct dsc_trans *trans = opaque_trans;
|
||||||
|
|
||||||
qdf_print_thread_trace(trans->thread);
|
qdf_print_thread_trace(trans->thread);
|
||||||
|
|
||||||
|
if (cds_is_fw_down())
|
||||||
|
dsc_err("fw is down avoid panic");
|
||||||
|
else
|
||||||
QDF_DEBUG_PANIC("Transition '%s' exceeded %ums",
|
QDF_DEBUG_PANIC("Transition '%s' exceeded %ums",
|
||||||
trans->active_desc, DSC_TRANS_TIMEOUT_MS);
|
trans->active_desc, DSC_TRANS_TIMEOUT_MS);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user