1
0

qcacmn: Do RTPM put during cleanup in case of WMI Tx completion failure

For WMI messages RTPM get is done during HTC message send and the
corresponding put is done in Tx failure or in Tx completion handler
for Tx success case. In the case where Tx completion is not received
for WMI messages RTPM put is not done as part of the cleanup which
results in RTPM Get and PUT call out of sync issues.

To fix the issue as part of HTC cleanup do RTPM put for WMI messages
for which tx completion is not received.

Change-Id: If92f4bd8a6c104d7ccef1e33b31aa765ea6100bd
CRs-Fixed: 3315404
Este cometimento está contido em:
Amit Mehta
2022-10-20 20:40:52 +05:30
cometido por Madan Koyyalamudi
ascendente 6487fc4371
cometimento ea172ef154
5 ficheiros modificados com 121 adições e 27 eliminações

Ver ficheiro

@@ -814,18 +814,18 @@ int htc_pm_runtime_get(HTC_HANDLE htc_handle);
int htc_pm_runtime_put(HTC_HANDLE htc_handle);
/**
* htc_dec_return_runtime_cnt: Decrement htc runtime count
* htc_dec_return_htt_runtime_cnt: Decrement htc htt runtime count
* @htc: HTC handle
*
* Return: value of runtime count after decrement
*/
int32_t htc_dec_return_runtime_cnt(HTC_HANDLE htc);
int32_t htc_dec_return_htt_runtime_cnt(HTC_HANDLE htc);
#else
static inline int htc_pm_runtime_get(HTC_HANDLE htc_handle) { return 0; }
static inline int htc_pm_runtime_put(HTC_HANDLE htc_handle) { return 0; }
static inline
int32_t htc_dec_return_runtime_cnt(HTC_HANDLE htc)
int32_t htc_dec_return_htt_runtime_cnt(HTC_HANDLE htc)
{
return -1;
}