]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm: Only add available components
authorDouglas Anderson <dianders@chromium.org>
Tue, 4 Dec 2018 18:04:41 +0000 (10:04 -0800)
committerRob Clark <robdclark@gmail.com>
Tue, 11 Dec 2018 18:07:09 +0000 (13:07 -0500)
commitdb0f28c64ba6ea4ae459779d7bd5cfd0c8e4fcab
treeeca637667e51dfae4eae784a1715015c4a589667
parent607812a26828d02108d985f9c89c0782bc774483
drm/msm: Only add available components

When trying to get the display up on my sdm845 board I noticed that
the display wouldn't probe if I had the dsi1 node marked as "disabled"
even though my board doesn't use dsi1.  It looks like the msm code
adds all nodes to its list of components even if they are disabled.  I
believe this doesn't work because all registered components need to
come up before we finish probing.  Let's do like other DRM code and
only add available components.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/msm_drv.c