qcacmn: Define runtime pm lock for roaming
Define new runtime pm lock to be used during roaming. Change-Id: Ia0d440d432b655c1e7fe41bdb12e4ad5207e7ad1 CRs-Fixed: 3239693
Bu işleme şunda yer alıyor:

işlemeyi yapan:
Madan Koyyalamudi

ebeveyn
1b244cfcb0
işleme
34afd4b92f
@@ -1,5 +1,6 @@
|
||||
/*
|
||||
* Copyright (c) 2013-2021 The Linux Foundation. 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
|
||||
@@ -36,6 +37,7 @@
|
||||
* @delete_wakelock: wakelock for vdev delete
|
||||
* @wmi_cmd_rsp_runtime_lock: run time lock
|
||||
* @prevent_runtime_lock: run time lock
|
||||
* @roam_sync_runtime_lock: roam sync runtime lock
|
||||
* @is_link_up: flag to check link status
|
||||
*/
|
||||
struct psoc_mlme_wakelock {
|
||||
@@ -44,6 +46,7 @@ struct psoc_mlme_wakelock {
|
||||
qdf_wake_lock_t delete_wakelock;
|
||||
qdf_runtime_lock_t wmi_cmd_rsp_runtime_lock;
|
||||
qdf_runtime_lock_t prevent_runtime_lock;
|
||||
qdf_runtime_lock_t roam_sync_runtime_lock;
|
||||
bool is_link_up;
|
||||
};
|
||||
#endif
|
||||
@@ -121,6 +124,25 @@ void target_if_vdev_start_link_handler(struct wlan_objmgr_vdev *vdev,
|
||||
*/
|
||||
void target_if_vdev_stop_link_handler(struct wlan_objmgr_vdev *vdev);
|
||||
|
||||
/**
|
||||
* target_if_prevent_pm_during_roam_sync() - prevent runtime PM during roam sync
|
||||
* @psoc: pointer to psoc
|
||||
*
|
||||
* Return: None
|
||||
*/
|
||||
void
|
||||
target_if_prevent_pm_during_roam_sync(struct wlan_objmgr_psoc *psoc);
|
||||
|
||||
/**
|
||||
* target_if_allow_pm_after_roam_sync() - allow runtime PM after roam
|
||||
* sync complete
|
||||
* @psoc: pointer to psoc
|
||||
*
|
||||
* Return: None
|
||||
*/
|
||||
void
|
||||
target_if_allow_pm_after_roam_sync(struct wlan_objmgr_psoc *psoc);
|
||||
|
||||
#else
|
||||
static inline void target_if_wake_lock_init(struct wlan_objmgr_psoc *psoc)
|
||||
{
|
||||
@@ -155,5 +177,14 @@ target_if_vdev_stop_link_handler(struct wlan_objmgr_vdev *vdev)
|
||||
{
|
||||
}
|
||||
|
||||
static inline void
|
||||
target_if_prevent_pm_during_roam_sync(struct wlan_objmgr_psoc *psoc)
|
||||
{
|
||||
}
|
||||
|
||||
static inline void
|
||||
target_if_allow_pm_after_roam_sync(struct wlan_objmgr_psoc *psoc)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
Yeni konuda referans
Bir kullanıcı engelle