soc: qcom: rpmh-rsc: Add delay during waiting for TCS complete
The RSC channel switch in certain cases may take more time to complete at RPMH end. Add delay of maximum 100usec. Change-Id: I65862ad80fbb698e6b66e2038a7692c4b78c2ce9 Signed-off-by: Maulik Shah <quic_mkshah@quicinc.com>
This commit is contained in:
@@ -1218,6 +1218,13 @@ int rpmh_rsc_is_tcs_completed(struct rsc_drv *drv, int ch)
|
||||
sts &= CH1_WAKE_TCS_STATUS;
|
||||
|
||||
retry--;
|
||||
/*
|
||||
* Wait till all the WAKE votes of the new channel are
|
||||
* applied during channel switch.
|
||||
* Maximum delay of 100 usec.
|
||||
*/
|
||||
if (!sts)
|
||||
udelay(10);
|
||||
} while (!sts && retry);
|
||||
|
||||
if (!retry) {
|
||||
|
||||
Reference in New Issue
Block a user