drm/msm: gpu: Return error on hw_init failure
authorJordan Crouse <jcrouse@codeaurora.org>
Mon, 28 Nov 2016 19:28:27 +0000 (12:28 -0700)
committerRob Clark <robdclark@gmail.com>
Mon, 28 Nov 2016 20:14:11 +0000 (15:14 -0500)
commitc4a8d4756061f72cba52af1e3035c07769cee679
treea48c7d5dd2bc366eb96db6ee44494105a660a9f5
parentbcc188b77d3e7d77fc7efd5feab148707e095b77
drm/msm: gpu: Return error on hw_init failure

When the GPU hardware init function fails (like say, ME_INIT timed
out) return error instead of blindly continuing on. This gives us
a small chance of saving the system before it goes boom.

Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/adreno/a3xx_gpu.c
drivers/gpu/drm/msm/adreno/a4xx_gpu.c
drivers/gpu/drm/msm/adreno/adreno_gpu.c
drivers/gpu/drm/msm/adreno/adreno_gpu.h
drivers/gpu/drm/msm/msm_gpu.h