drm/msm/adreno: a5xx_power: Don't apply A540 lm_setup to other GPUs
authorKonrad Dybcio <konrad.dybcio@somainline.org>
Sun, 28 Feb 2021 12:36:51 +0000 (13:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 10 Apr 2021 11:36:08 +0000 (13:36 +0200)
commit57e0546f01ca19b4ce5ed1cc66ae5a1b8671c198
treed5822fa1ed2853dc98fc881e7cc10372c04b6162
parentb9ec77ef36af776ec17427db8ccff804a9b2e142
drm/msm/adreno: a5xx_power: Don't apply A540 lm_setup to other GPUs

[ 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 <konrad.dybcio@somainline.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/msm/adreno/a5xx_power.c