]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/msm/adreno: Fix error return if missing firmware-name
authorRob Clark <robdclark@chromium.org>
Tue, 16 Jul 2024 16:06:30 +0000 (09:06 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:10:33 +0000 (15:10 +0200)
commit156ea0823d3cc9b3ac02ca52ac0c79d680c0331f
treecc25ce35a11c4acb3d7c5b095922befd0434b099
parentda69c01768dab8a7853444ef2407986b569e4608
drm/msm/adreno: Fix error return if missing firmware-name

[ Upstream commit 624ab9cde26a9f150b4fd268b0f3dae3184dc40c ]

-ENODEV is used to signify that there is no zap shader for the platform,
and the CPU can directly take the GPU out of secure mode.  We want to
use this return code when there is no zap-shader node.  But not when
there is, but without a firmware-name property.  This case we want to
treat as-if the needed fw is not found.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Akhil P Oommen <quic_akhilpo@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/604564/
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/msm/adreno/adreno_gpu.c