]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
drm/msm/a5xx: Always set an OPP supported hardware value
authorJordan Crouse <jcrouse@codeaurora.org>
Fri, 14 Feb 2020 18:36:44 +0000 (11:36 -0700)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 9 Nov 2020 13:47:39 +0000 (14:47 +0100)
commite70e20f72751ff15a2d2cc734276242e8b2dbe97
treee5ded163a080d847137090450eab0ce5ba21b491
parent133b2818456632123905cffb19502b2423eba8cc
drm/msm/a5xx: Always set an OPP supported hardware value

BugLink: https://bugs.launchpad.net/bugs/1900624
[ Upstream commit 0478b4fc5f37f4d494245fe7bcce3f531cf380e9 ]

If the opp table specifies opp-supported-hw as a property but the driver
has not set a supported hardware value the OPP subsystem will reject
all the table entries.

Set a "default" value that will match the default table entries but not
conflict with any possible real bin values. Also fix a small memory leak
and free the buffer allocated by nvmem_cell_read().

Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Rob Clark <robdclark@chromium.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Ian May <ian.may@canonical.com>
drivers/gpu/drm/msm/adreno/a5xx_gpu.c