From 778b28eb4af95d093487438d63a75193c33a883f Mon Sep 17 00:00:00 2001 From: Alan Chen Date: Tue, 9 Jun 2020 12:49:11 -0700 Subject: [PATCH] qcacmn: Add a new wakelock for idle shutdown Add a new wakelock for idle shutdown in order to prevent suspend from occurring during idle shutdown. Change-Id: Ia0c7422d3a12e7ff27d5acf9f57a81be13e5ef7d CRs-Fixed: 2706461 --- utils/host_diag_log/inc/host_diag_core_event.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/utils/host_diag_log/inc/host_diag_core_event.h b/utils/host_diag_log/inc/host_diag_core_event.h index e15a980c7d16..5c83204a3222 100644 --- a/utils/host_diag_log/inc/host_diag_core_event.h +++ b/utils/host_diag_log/inc/host_diag_core_event.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014-2019 The Linux Foundation. All rights reserved. + * Copyright (c) 2014-2020 The Linux Foundation. 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 @@ -898,6 +898,7 @@ enum wifi_connectivity_events { * @WIFI_POWER_EVENT_WAKELOCK_IFACE_CHANGE_TIMER: iface change timer running * @WIFI_POWER_EVENT_WAKELOCK_MONITOR_MODE: Montitor mode wakelock * @WIFI_POWER_EVENT_WAKELOCK_DRIVER_IDLE_RESTART: Wakelock for Idle Restart + * @WIFI_POWER_EVENT_WAKELOCK_DRIVER_IDLE_SHUTDOWN: Wakelock for Idle Shutdown * * Indicates the reason for which the wakelock was taken/released */ @@ -925,6 +926,7 @@ enum wake_lock_reason { WIFI_POWER_EVENT_WAKELOCK_IFACE_CHANGE_TIMER, WIFI_POWER_EVENT_WAKELOCK_MONITOR_MODE, WIFI_POWER_EVENT_WAKELOCK_DRIVER_IDLE_RESTART, + WIFI_POWER_EVENT_WAKELOCK_DRIVER_IDLE_SHUTDOWN, }; /* The length of interface name should >= IFNAMSIZ */