remoteproc: qcom: pas: Fix rproc_config_check
Introduce delay only if read value is mis-matched with requested state. Change-Id: I5c35706bcfe00151b09e90f20b8e14e9a8842643 Signed-off-by: Kamati Srinivas <quic_kamasrin@quicinc.com>
This commit is contained in:
parent
a7975a4fd9
commit
cb2f2e127f
@ -838,7 +838,7 @@ static int rproc_config_check(struct qcom_adsp *adsp, u32 state, void *addr)
|
||||
do {
|
||||
usleep_range(SOCCP_SLEEP_US, SOCCP_SLEEP_US + 100);
|
||||
val = readl(addr);
|
||||
} while (!(val && state) && --retry_num);
|
||||
} while (!(val & state) && --retry_num);
|
||||
|
||||
return (val & state) ? 0 : -ETIMEDOUT;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user