From 3b085fd248550f84537cdde9560c9eb0ae6525f3 Mon Sep 17 00:00:00 2001 From: Rajeev Kumar Date: Thu, 13 Jan 2022 22:59:35 -0800 Subject: [PATCH] qcacmn: Clear num stats over QMI once WoW enter/exit Num stats over QMI indicates how many stats requests are fetched without triggering RTPM resume. If RTPM resume/suspend happens in the middle then num stats over QMI counter should reset. Add logic to reset num stats over QMI counter during WoW enter/exit. Change-Id: I34fe93759bf8a7a2a6c0d4b389ad96b8e1ba4d6c CRs-Fixed: 3110590 --- wmi/src/wmi_unified.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wmi/src/wmi_unified.c b/wmi/src/wmi_unified.c index 84d78dba63..a267c05b45 100644 --- a/wmi/src/wmi_unified.c +++ b/wmi/src/wmi_unified.c @@ -1,6 +1,6 @@ /* * Copyright (c) 2015-2021 The Linux Foundation. All rights reserved. - * Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved. + * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. 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 @@ -3657,6 +3657,7 @@ void wmi_set_target_suspend(wmi_unified_t wmi_handle, A_BOOL val) void wmi_set_target_suspend_acked(wmi_unified_t wmi_handle, A_BOOL val) { qdf_atomic_set(&wmi_handle->is_target_suspend_acked, val); + qdf_atomic_set(&wmi_handle->num_stats_over_qmi, 0); } /**