]> git.ipfire.org Git - thirdparty/u-boot.git/commit
soc/qcom: rpmh: correctly wait for TCS flush
authorCasey Connolly <casey.connolly@linaro.org>
Thu, 8 Jan 2026 20:28:45 +0000 (21:28 +0100)
committerCasey Connolly <casey.connolly@linaro.org>
Wed, 14 Jan 2026 15:25:09 +0000 (16:25 +0100)
commit5942ad0ddb54e7042d2f465d563779da4e42bc47
treecf5e3c301958b6e6e6a989935d1bfcef7f537781
parent16889f764bdceb4cb497bdeda5f80f59a880de70
soc/qcom: rpmh: correctly wait for TCS flush

Several bugs were discovered in the rpmh-rsc driver which collectively
meant we were never actually waiting for the TCS to flush, these were
likely missed because U-Boot runs single threaded and the RPMh had
typically processed the single command we sent by the time we went
to send the next one. However a future patch will implement rpmh read
support which requires us to properly wait for the RPMh command response
so we can return the value.

Fix these issues so we correctly ensure the TCS is done before
returning.

Link: https://patch.msgid.link/20260108-rpmh-regulator-fixes-v1-3-d1b5b300b665@linaro.org
Signed-off-by: Casey Connolly <casey.connolly@linaro.org>
drivers/soc/qcom/rpmh-rsc.c
drivers/soc/qcom/rpmh.c