drm/msm: handle for EPROBE_DEFER for of_icc_get
authorJonathan Marek <jonathan@marek.ca>
Mon, 13 Jul 2020 22:53:42 +0000 (18:53 -0400)
committerRob Clark <robdclark@chromium.org>
Thu, 30 Jul 2020 20:44:52 +0000 (13:44 -0700)
commit08af4769c7d211ff800a143b60855ad7146befc8
tree8b583f214cdaef834d479c48e3f1a98543c909b3
parent0ded520b182e13277e1076f84ca16247eb9bf150
drm/msm: handle for EPROBE_DEFER for of_icc_get

Check for errors instead of silently not using icc if the msm driver
probes before the interconnect driver.

Allow ENODATA for ocmem path, as it is optional and this error
is returned when "gfx-mem" path is provided but not "ocmem".

Because msm_gpu_cleanup assumes msm_gpu_init has been called, the icc path
init needs to be after msm_gpu_init for the error path to work.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/adreno/adreno_gpu.c