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
This commit is contained in:
Alan Chen 2020-06-09 12:49:11 -07:00 • committed by nshrivas
commit 778b28eb4a

View file

@ -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 */