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)
committerRob Clark <robdclark@chromium.org>
Thu, 19 Mar 2020 19:15:35 +0000 (12:15 -0700)
commit0478b4fc5f37f4d494245fe7bcce3f531cf380e9
tree1280aa4d4884b445c3ab8262c8b7d1b2763ed016
parente6790f7210062ea551c378250ea5b70851d35e95
drm/msm/a5xx: Always set an OPP supported hardware value

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>
drivers/gpu/drm/msm/adreno/a5xx_gpu.c