drivers: qcom: rpmh-rsc: allow active requests from wake TCS
authorLina Iyer <ilina@codeaurora.org>
Wed, 20 Jun 2018 13:27:07 +0000 (18:57 +0530)
committerAndy Gross <andy.gross@linaro.org>
Sat, 21 Jul 2018 18:33:49 +0000 (13:33 -0500)
commit2de4b8d33eab86a6d9653041f8543f6f5f882a25
tree4961633d2952d8878109b5845cefcd53c7eec131
parentc8790cb6da58d3fa09dfa707aa486fe6769c23bc
drivers: qcom: rpmh-rsc: allow active requests from wake TCS

Some RSCs may only have sleep and wake TCS, i.e, there is no dedicated
TCS for active mode request, but drivers may still want to make active
requests from these RSCs. In such cases re-purpose the wake TCS to send
active state requests.

The requirement for this is that the driver is aware that the wake TCS
is being repurposed to send active request, hence the sleep and wake
TCSes be invalidated before the active request is sent.

Signed-off-by: Lina Iyer <ilina@codeaurora.org>
Signed-off-by: Raju P.L.S.S.S.N <rplsssn@codeaurora.org>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
drivers/soc/qcom/rpmh-rsc.c