soc: qcom: rpmh-rsc: Avoid unnecessary checks on irq-done response
authorAbel Vesa <abel.vesa@linaro.org>
Wed, 16 Nov 2022 11:22:46 +0000 (13:22 +0200)
committerBjorn Andersson <andersson@kernel.org>
Mon, 5 Dec 2022 21:12:17 +0000 (15:12 -0600)
commit323dc2dcdb503323097855174908b52d84477760
tree3600e3a0d98798afe10c0d82275a773665c4ce9c
parent40482e4f73640dcf7bebcb503f034828b998c39c
soc: qcom: rpmh-rsc: Avoid unnecessary checks on irq-done response

The RSC interrupt is issued only after the request is complete. For
fire-n-forget requests, the irq-done interrupt is sent after issuing the
RPMH request and for response-required request, the interrupt is
triggered only after all the requests are complete.

These unnecessary checks in the interrupt handler issues AHB reads from
a critical path. Lets remove them and clean up error handling in
rpmh_request data structures.

Co-developed-by: Lina Iyer <ilina@codeaurora.org>
Signed-off-by: Lina Iyer <ilina@codeaurora.org>
Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221116112246.2640648-2-abel.vesa@linaro.org
drivers/soc/qcom/rpmh-internal.h
drivers/soc/qcom/rpmh-rsc.c
drivers/soc/qcom/rpmh.c
drivers/soc/qcom/trace-rpmh.h