soc: qcom: rpmh-rsc: read_tcs_reg()/write_tcs_reg() are not for IRQ
authorDouglas Anderson <dianders@chromium.org>
Mon, 13 Apr 2020 17:04:15 +0000 (10:04 -0700)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 14 Apr 2020 05:09:45 +0000 (22:09 -0700)
commit032c692ae588324f66ac07c0357d2e681a9d0e1e
treea070058264427ec15004850dc81118d5f20a830a
parent881808d0bbf336d333981ad86bde62ef2165e437
soc: qcom: rpmh-rsc: read_tcs_reg()/write_tcs_reg() are not for IRQ

The RSC_DRV_IRQ_ENABLE, RSC_DRV_IRQ_STATUS, and RSC_DRV_IRQ_CLEAR
registers are not part of TCS 0.  Let's not pretend that they are by
using read_tcs_reg() and write_tcs_reg() and passing a bogus tcs_id of
0.  We could introduce a new wrapper for these registers but it
wouldn't buy us much.  Let's just read/write directly.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Maulik Shah <mkshah@codeaurora.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Tested-by: Maulik Shah <mkshah@codeaurora.org>
Link: https://lore.kernel.org/r/20200413100321.v4.10.I2adf93809c692d0b673e1a86ea97c45644aa8d97@changeid
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/soc/qcom/rpmh-rsc.c