drm/msm/a6xx: Fix speed-bin detection vs probe-defer
authorRob Clark <robdclark@chromium.org>
Tue, 15 Nov 2022 15:46:34 +0000 (07:46 -0800)
committerRob Clark <robdclark@chromium.org>
Thu, 17 Nov 2022 18:39:06 +0000 (10:39 -0800)
commitf6d1918794ef92b4e26b80c3d40365347b76b1fd
treec39dcff5b451119f071e67709ded6c7cf3962488
parentc901a8cae606078e9242d26d72f8f5b8a8001e29
drm/msm/a6xx: Fix speed-bin detection vs probe-defer

If we get an error (other than -ENOENT) we need to propagate that up the
stack.  Otherwise if the nvmem driver hasn't probed yet, we'll end up
end up claiming that we support all the OPPs which is not likely to be
true (and on some generations impossible to be true, ie. if there are
conflicting OPPs).

v2: Update commit msg, gc unused label, etc
v3: Add previously missing \n's

Fixes: fe7952c629da ("drm/msm: Add speed-bin support to a618 gpu")
Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Akhil P Oommen <quic_akhilpo@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/511690/
Link: https://lore.kernel.org/r/20221115154637.1613968-1-robdclark@gmail.com
drivers/gpu/drm/msm/adreno/a6xx_gpu.c