]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/a5xx: Allow all patchid for A540 chip
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
Sat, 9 Jan 2021 13:40:44 +0000 (14:40 +0100)
committerRob Clark <robdclark@chromium.org>
Sun, 31 Jan 2021 18:40:26 +0000 (10:40 -0800)
commit4f2cf99d542c4070d5def1db20ce6436e5f92e53
tree12f99c4ef76e872b2398db17b180adf61f7a9a9b
parent6cefa31e810404dafdfcdb94874146cea11626c2
drm/msm/a5xx: Allow all patchid for A540 chip

On at least MSM8998 it's possible to find Adreno 540.0 and 540.1
but I have never found any 540.2. In any case, the patchids 0-1
for A540 are completely supported by this driver and there is no
reason to disallow probing them (as they also share the same
firmware names).

Besides that, the patchid number is also used in the a5xx_power.c
function a540_lm_setup to disable the battery current limiter,
which makes faking the Adreno patchid to .2 (which would anyway
be sad) useless and even producing breakages.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/adreno/adreno_device.c