Commit d38660eb authored by Rob Clark's avatar Rob Clark

drm/msm/adreno: Check for zap node availability

This should allow disabling the zap node via an overlay, for slbounce.
Suggested-by: default avatarNikita Travkin <nikita@trvn.ru>
Signed-off-by: default avatarRob Clark <robdclark@chromium.org>
Reviewed-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: default avatarBjorn Andersson <quic_bjorande@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/594572/
parent f2608b70
...@@ -46,7 +46,7 @@ static int zap_shader_load_mdt(struct msm_gpu *gpu, const char *fwname, ...@@ -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"); np = of_get_child_by_name(dev->of_node, "zap-shader");
if (!np) { if (!of_device_is_available(np)) {
zap_available = false; zap_available = false;
return -ENODEV; return -ENODEV;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment