diff options
author | 2017-05-03 10:43:14 -0400 | |
---|---|---|
committer | 2017-05-27 13:48:25 -0400 | |
commit | 134ccada7ac59156761ce05afd1c0b1d02ebd928 (patch) | |
tree | d9ec52e4c8592ba7e60d742abef1732e98f9813a /drivers/gpu | |
parent | drm/msm/mdp5: use __drm_atomic_helper_plane_duplicate_state() (diff) | |
download | linux-134ccada7ac59156761ce05afd1c0b1d02ebd928.tar.gz linux-134ccada7ac59156761ce05afd1c0b1d02ebd928.tar.bz2 linux-134ccada7ac59156761ce05afd1c0b1d02ebd928.zip |
drm/msm/gpu: check legacy clk names in get_clocks()
Otherwise if someone was using old bindings with "core_clk" instead of
"core" as the clock name, we'd never find it and gpu would be stuck at
27MHz (or whatever it's slowest rate is).
Fixes: 98db803 ("msm/drm: gpu: Dynamically locate the clocks from the device tree")
Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/msm/msm_gpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/msm/msm_gpu.c b/drivers/gpu/drm/msm/msm_gpu.c index 97b9c38c6b3f..0fdc88d79ca8 100644 --- a/drivers/gpu/drm/msm/msm_gpu.c +++ b/drivers/gpu/drm/msm/msm_gpu.c @@ -549,9 +549,9 @@ static int get_clocks(struct platform_device *pdev, struct msm_gpu *gpu) gpu->grp_clks[i] = get_clock(dev, name); /* Remember the key clocks that we need to control later */ - if (!strcmp(name, "core")) + if (!strcmp(name, "core") || !strcmp(name, "core_clk")) gpu->core_clk = gpu->grp_clks[i]; - else if (!strcmp(name, "rbbmtimer")) + else if (!strcmp(name, "rbbmtimer") || !strcmp(name, "rbbmtimer_clk")) gpu->rbbmtimer_clk = gpu->grp_clks[i]; ++i; |