From: Konrad Dybcio Date: Sun, 28 Feb 2021 12:36:51 +0000 (+0100) Subject: drm/msm/adreno: a5xx_power: Don't apply A540 lm_setup to other GPUs X-Git-Tag: Ubuntu-5.4.0-74.83~234 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=c744d7b774ab617d1a3e549b41eb732412379eae;p=mirror_ubuntu-focal-kernel.git drm/msm/adreno: a5xx_power: Don't apply A540 lm_setup to other GPUs BugLink: https://bugs.launchpad.net/bugs/1923874 [ Upstream commit 4a9d36b0610aa7034340e976652e5b43320dd7c5 ] While passing the A530-specific lm_setup func to A530 and A540 to !A530 was fine back when only these two were supported, it certainly is not a good idea to send A540 specifics to smaller GPUs like A508 and friends. Signed-off-by: Konrad Dybcio Signed-off-by: Rob Clark Signed-off-by: Sasha Levin Signed-off-by: Kamal Mostafa Signed-off-by: Stefan Bader --- diff --git a/drivers/gpu/drm/msm/adreno/a5xx_power.c b/drivers/gpu/drm/msm/adreno/a5xx_power.c index a3a06db675ba..ee3ff32da004 100644 --- a/drivers/gpu/drm/msm/adreno/a5xx_power.c +++ b/drivers/gpu/drm/msm/adreno/a5xx_power.c @@ -300,7 +300,7 @@ int a5xx_power_init(struct msm_gpu *gpu) /* Set up the limits management */ if (adreno_is_a530(adreno_gpu)) a530_lm_setup(gpu); - else + else if (adreno_is_a540(adreno_gpu)) a540_lm_setup(gpu); /* Set up SP/TP power collpase */