]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/adreno: fix gpu probe if no interconnect-names
authorRob Clark <robdclark@chromium.org>
Wed, 15 Jul 2020 19:07:30 +0000 (12:07 -0700)
committerRob Clark <robdclark@chromium.org>
Fri, 31 Jul 2020 13:45:56 +0000 (06:45 -0700)
commit45848a68b52ed652acd0808a54ea9676371ce7a0
tree79325caa598a4802006c9fdffa4d1928e14b7c37
parent5990d925911bedac88cf4fc6b658c1b3278a3ac7
drm/msm/adreno: fix gpu probe if no interconnect-names

If there is no interconnect-names, but there is an interconnects
property, then of_icc_get(dev, "gfx-mem"); would return an error
rather than NULL.

Also, if there is no interconnect-names property, there will never
be a ocmem path.  But of_icc_get(dev, "ocmem") would return -EINVAL
instead of -ENODATA.  Just don't bother trying in this case.

v2: explicity check for interconnect-names property

Fixes: 213ec29e46f5 ("drm/msm: handle for EPROBE_DEFER for of_icc_get")
Fixes: e3d71ac02d34 ("drm/msm/gpu: add support for ocmem interconnect path")
Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/adreno/adreno_gpu.c