]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit384ece98d0c6ba6d3ec6d9ebfdb49aa3621f5a07
tree8b583f214cdaef834d479c48e3f1a98543c909b3
parent5d05a235a17494af2e0e77a384000599d51fe027
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