]> git.baikalelectronics.ru Git - kernel.git/commit
drivers: qcom: rpmh-rsc: Check cmd_db_ready() to help children
authorDouglas Anderson <dianders@chromium.org>
Mon, 18 Jun 2018 18:36:52 +0000 (11:36 -0700)
committerAndy Gross <andy.gross@linaro.org>
Sat, 21 Jul 2018 18:34:00 +0000 (13:34 -0500)
commit985d2f2366677515528cb68a00477ebf3693b6c9
tree0f1e7f7d73fd0142b343e27fd14ef05abb1ab44d
parenteb01874c59343f9b2bea74393da61b7e8a73e456
drivers: qcom: rpmh-rsc: Check cmd_db_ready() to help children

Children of RPMh will need access to cmd_db.  Rather than having each
child have code to check if cmd_db is ready let's add the check to
RPMh.

With this we'll be able to remove this boilerplate code from
clk-rpmh.c and qcom-rpmh-regulator.c.  Neither of these files has
landed upstream yet but patches are pretty far along.

===
This code is based upon v11 of Lina and Raju's RPMh series.

Suggested-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Acked-by: Lina Iyer <ilina@codeaurora.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
drivers/soc/qcom/rpmh-rsc.c