cnss2: Add pcss recovery support
Extend current recovery sysfs interface, add pcss recovery support. Change previous sysfs recovery from bool to bitamp. Bit 0 is used for original wlan recovery, bit 1 is newly added for pcss recovery. Once fw is downloaded, host driver can use QMI message to notify fw enable or disable this feature. Change-Id: Ifdf49cecc70ab2d554bd267d18ff78d92049f5b8
This commit is contained in:

zatwierdzone przez
Gerrit - the friendly Code Review server

rodzic
c4f490a979
commit
648ac5ccff
13
cnss2/qmi.h
13
cnss2/qmi.h
@@ -1,5 +1,9 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/* Copyright (c) 2015-2021, The Linux Foundation. All rights reserved. */
|
||||
/*
|
||||
* Copyright (c) 2015-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef _CNSS_QMI_H
|
||||
#define _CNSS_QMI_H
|
||||
@@ -84,6 +88,7 @@ int wlfw_qdss_trace_start(struct cnss_plat_data *plat_priv);
|
||||
int wlfw_qdss_trace_stop(struct cnss_plat_data *plat_priv, unsigned long long option);
|
||||
int cnss_wlfw_cal_report_req_send_sync(struct cnss_plat_data *plat_priv,
|
||||
u32 cal_file_download_size);
|
||||
int cnss_send_subsys_restart_level_msg(struct cnss_plat_data *plat_priv);
|
||||
#else
|
||||
#define QMI_WLFW_TIMEOUT_MS 10000
|
||||
|
||||
@@ -299,6 +304,12 @@ int cnss_wlfw_cal_report_req_send_sync(struct cnss_plat_data *plat_priv,
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline
|
||||
int cnss_send_subsys_restart_level_msg(struct cnss_plat_data *plat_priv)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#endif /* CONFIG_CNSS2_QMI */
|
||||
|
||||
#ifdef CONFIG_CNSS2_DEBUG
|
||||
|
Reference in New Issue
Block a user