OSDN Git Service

drivers: qcom: rpmh: avoid sending sleep/wake sets immediately
authorRaju P.L.S.S.S.N <rplsssn@codeaurora.org>
Tue, 23 Oct 2018 17:29:08 +0000 (22:59 +0530)
committerAndy Gross <andy.gross@linaro.org>
Fri, 1 Feb 2019 22:08:40 +0000 (16:08 -0600)
commit7300241926e8cf5b5f01059b0c07896fb1c74d9e
treed083358aaf3ed502b3fcafa2d00721499b7a3d58
parentf58b0f9d9dd6d033396561517bb191d904df9e54
drivers: qcom: rpmh: avoid sending sleep/wake sets immediately

Fix the redundant call being made to send the sleep and wake requests
immediately to the controller.

As per the patch [1], the sleep and wake request votes are cached in
rpmh controller and sent during rpmh_flush(). These requests needs to be
sent only during entry of deeper system low power modes or suspend.

[1] https://patchwork.kernel.org/patch/10477533/

Reviewed-by: Lina Iyer <ilina@codeaurora.org>
Reviewed-by: Evan Green <evgreen@chromium.org>
Signed-off-by: Raju P.L.S.S.S.N <rplsssn@codeaurora.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
drivers/soc/qcom/rpmh.c