Merge "soc: qcom: rpmh: Fix sending incorrect data during rpmh flush"

This commit is contained in:
qctecmdr 2019-10-01 19:17:25 -07:00 • committed by Gerrit - the friendly Code Review server
commit a49a3b4be7

View file

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