qcacmn: Export API to change delay for RTPM timeout

Store ini config delay value and current delay value in RTPM
context
Export API to update delay and get current delay in ms for RTPM
timeout.
Export API to restore delay to default value.

Change-Id: I53e9e17d983c2cc6fe317159c8c46d792e56c04e
CRs-Fixed: 3332132
This commit is contained in:
Ananya Gupta
2022-11-08 16:17:51 +05:30
کامیت شده توسط Madan Koyyalamudi
والد a361d76cff
کامیت f1f6845bfb
3فایلهای تغییر یافته به همراه87 افزوده شده و 2 حذف شده

مشاهده پرونده

@@ -1296,6 +1296,28 @@ QDF_STATUS hif_rtpm_register(uint32_t id, void (*hif_rpm_cbk)(void));
*/
QDF_STATUS hif_rtpm_deregister(uint32_t id);
/**
* hif_rtpm_set_autosuspend_delay() - Set delay to trigger RTPM suspend
* @delay: delay in ms to be set
*
* Return: Success if delay is set successfully
*/
QDF_STATUS hif_rtpm_set_autosuspend_delay(int delay);
/**
* hif_rtpm_restore_autosuspend_delay() - Restore delay value to default value
*
* Return: Success if reset done. E_ALREADY if delay same as config value
*/
QDF_STATUS hif_rtpm_restore_autosuspend_delay(void);
/**
* hif_rtpm_get_autosuspend_delay() -Get delay to trigger RTPM suspend
*
* Return: Delay in ms
*/
int hif_rtpm_get_autosuspend_delay(void);
/**
* hif_runtime_lock_init() - API to initialize Runtime PM context
* @lock: QDF lock context
@@ -1566,6 +1588,16 @@ static inline
QDF_STATUS hif_rtpm_deregister(uint32_t id)
{ return QDF_STATUS_SUCCESS; }
static inline
QDF_STATUS hif_rtpm_set_autosuspend_delay(int delay)
{ return QDF_STATUS_SUCCESS; }
static inline QDF_STATUS hif_rtpm_restore_autosuspend_delay(void)
{ return QDF_STATUS_SUCCESS; }
static inline int hif_rtpm_get_autosuspend_delay(void)
{ return 0; }
static inline
int hif_runtime_lock_init(qdf_runtime_lock_t *lock, const char *name)
{ return 0; }