mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
soc: qcom: rpmh: Fix sending incorrect data during rpmh flush
During flush of current cached data, Sleep and Wake TCSes have previously programmed data present. Due to this incorrect data is sent. Fix this by cleaning TCSes and freshly program current cached sleep and wake data. Change-Id: I8f1cb9925a7800aad65d665192d3b129c76dd9de Signed-off-by: Maulik Shah <mkshah@codeaurora.org> Signed-off-by: Lina Iyer <ilina@codeaurora.org>
This commit is contained in:
parent
bda68082e0
commit
d1c7802611
1 changed files with 5 additions and 0 deletions
|
|
@ -562,6 +562,11 @@ int rpmh_flush(const struct device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
/* Invalidate the TCSes first to avoid stale data */
|
||||
do {
|
||||
ret = rpmh_rsc_invalidate(ctrlr_to_drv(ctrlr));
|
||||
} while (ret == -EAGAIN);
|
||||
|
||||
/* First flush the cached batch requests */
|
||||
ret = flush_batch(ctrlr);
|
||||
if (ret)
|
||||
|
|
|
|||
Loading…
Reference in a new issue