diff options
author | Rob Clark <robdclark@chromium.org> | 2024-05-17 22:50:19 +0300 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2024-06-21 23:41:43 +0300 |
commit | d38660ebde6205ce73534a272daf2f2ef41fecef (patch) | |
tree | e4af768f7d86ad8c4bf28b8868fada5f506b55bd | |
parent | f2608b70f6c2e1454bcc185d9089a881b6ad974b (diff) | |
download | linux-d38660ebde6205ce73534a272daf2f2ef41fecef.tar.xz |
drm/msm/adreno: Check for zap node availability
This should allow disabling the zap node via an overlay, for slbounce.
Suggested-by: Nikita Travkin <nikita@trvn.ru>
Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Bjorn Andersson <quic_bjorande@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/594572/
-rw-r--r-- | drivers/gpu/drm/msm/adreno/adreno_gpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/adreno/adreno_gpu.c b/drivers/gpu/drm/msm/adreno/adreno_gpu.c index 7e6e342dc92a..71a9acc002fe 100644 --- a/drivers/gpu/drm/msm/adreno/adreno_gpu.c +++ b/drivers/gpu/drm/msm/adreno/adreno_gpu.c @@ -46,7 +46,7 @@ static int zap_shader_load_mdt(struct msm_gpu *gpu, const char *fwname, } np = of_get_child_by_name(dev->of_node, "zap-shader"); - if (!np) { + if (!of_device_is_available(np)) { zap_available = false; return -ENODEV; } |