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:
Maulik Shah
2023-09-27 12:09:19 +05:30
parent b00b7812f7
commit 75619d91a6

View File

@@ -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) {