From d0327d53d7299688deb0dba91b8cd2fac7f8c35e Mon Sep 17 00:00:00 2001 From: Ryan Hsu Date: Tue, 29 May 2018 15:07:25 -0700 Subject: [PATCH] qcacld-3.0: Add SSR callbacks As CDS is not usable by WIN, add callbacks that are registered in QDF and correct the module dependencies. Also rearrange the header file inclusion, due to in cmn project, the qdf_self_recovery_callback() is moved from qdf_event.h to qdf_platform.h. Change-Id: I6d03a1a8df01df4c67a933a11d86147384b656fd CRs-fixed: 2263625 --- core/cds/inc/cds_api.h | 2 ++ core/cds/src/cds_api.c | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/core/cds/inc/cds_api.h b/core/cds/inc/cds_api.h index 0f302c910dde..39bb7c59d542 100644 --- a/core/cds/inc/cds_api.h +++ b/core/cds/inc/cds_api.h @@ -34,6 +34,8 @@ #include #include #include +#include "qdf_platform.h" +#include "qdf_cpuhp.h" #include "reg_services_public_struct.h" #include #include diff --git a/core/cds/src/cds_api.c b/core/cds/src/cds_api.c index cae80f00c23b..4eb959cdda69 100644 --- a/core/cds/src/cds_api.c +++ b/core/cds/src/cds_api.c @@ -22,7 +22,6 @@ * Connectivity driver services APIs */ -#include "cds_sched.h" #include #include "sir_types.h" #include "sir_api.h" @@ -39,7 +38,6 @@ #include "pld_common.h" #include "sap_api.h" -#include "qdf_trace.h" #include "bmi.h" #include "ol_fw.h" #include "ol_if_athvar.h" @@ -56,10 +54,8 @@ #include #include #include -#include "qdf_cpuhp.h" #include "target_type.h" #include "wlan_ocb_ucfg_api.h" -#include "qdf_platform.h" #include "wlan_ipa_ucfg_api.h" #ifdef ENABLE_SMMU_S1_TRANSLATION @@ -171,6 +167,10 @@ QDF_STATUS cds_init(void) qdf_cpuhp_init(); qdf_register_self_recovery_callback(cds_trigger_recovery); qdf_register_fw_down_callback(cds_is_fw_down); + qdf_register_ssr_protect_callbacks(cds_ssr_protect, + cds_ssr_unprotect); + qdf_register_module_state_query_callback( + cds_is_module_state_transitioning); gp_cds_context = &g_cds_context;