From 5cc1416178524164afdd8dc00f7ffa77fb2479e2 Mon Sep 17 00:00:00 2001 From: Arun Kumar Khandavalli Date: Sun, 20 Sep 2020 19:16:53 +0530 Subject: [PATCH] qcacld-3.0: check for IPCI target before triggering recovery Check for the Moselle bus type whether the selfrecovery ini is enabled, if the ini is disabled let the system enter to bad state and debug the issue. Change-Id: Ib6e720bbc8d1421706a5631ecc7d11989538e2d5 CRs-Fixed: 2780882 --- core/cds/src/cds_api.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/cds/src/cds_api.c b/core/cds/src/cds_api.c index 04ad4c265f87..1b21aaef5490 100644 --- a/core/cds/src/cds_api.c +++ b/core/cds/src/cds_api.c @@ -1915,10 +1915,11 @@ static void cds_trigger_recovery_handler(const char *func, const uint32_t line) } /* - * if *wlan* recovery is disabled, crash here for debugging for snoc - * targets. + * if *wlan* recovery is disabled, crash here for debugging for + * snoc/IPCI targets. */ - if (qdf->bus_type == QDF_BUS_TYPE_SNOC && !ssr_ini_enabled) { + if ((qdf->bus_type == QDF_BUS_TYPE_SNOC || + qdf->bus_type == QDF_BUS_TYPE_IPCI) && !ssr_ini_enabled) { QDF_DEBUG_PANIC("WLAN recovery is not enabled (via %s:%d)", func, line); return;