]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm: Fix A6XX support for opp-level
authorDouglas Anderson <dianders@chromium.org>
Wed, 16 Jan 2019 18:46:21 +0000 (10:46 -0800)
committerRob Clark <robdclark@gmail.com>
Thu, 24 Jan 2019 20:36:33 +0000 (15:36 -0500)
commit0bd781115889ecf52c78939562fb99e3e93b8c3f
tree5667c3f0b300a61d8139218089b234552912020b
parent04332fd6c1ea6cb3a1b46cac623df227520f36fe
drm/msm: Fix A6XX support for opp-level

The bindings for Qualcomm opp levels changed after being Acked but
before landing.  Thus the code in the GPU driver that was relying on
the old bindings is now broken.

Let's change the code to match the new bindings by adjusting the old
string 'qcom,level' to the new string 'opp-level'.  See the patch
("dt-bindings: opp: Introduce opp-level bindings").

NOTE: we will do additional cleanup to totally remove the string from
the code and use the new dev_pm_opp_get_level() but we'll do it in a
future patch.  This will facilitate getting the important code fix in
sooner without having to deal with cross-maintainer dependencies.

This patch needs to land before the patch ("arm64: dts: sdm845: Add
gpu and gmu device nodes") since if a tree contains the device tree
patch but not this one you'll get a crash at bootup.

Fixes: 8d642c9c76ed ("drm/msm: Add A6XX device support")
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/adreno/a6xx_gmu.c