]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/dp: fix panel bridge attachment
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Fri, 11 Feb 2022 22:40:02 +0000 (01:40 +0300)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Sat, 19 Feb 2022 02:28:29 +0000 (05:28 +0300)
commitb540b9daff2912b039b232a46c75c04f79172e78
tree71ea787c400c924004ee0414597ebd27d6ca4f2b
parent31ba0d9a02d7c405a42edc5c600519d42fbee80e
drm/msm/dp: fix panel bridge attachment

In commit 3fc9f2bcab38 ("drm/msm/dp: employ bridge mechanism for display
enable and disable") the DP driver received a drm_bridge instance, which
is always attached to the encoder as a root bridge. However it conflicts
with the panel_bridge support for eDP panels. The panel bridge attaches
to the encoder before the "dp" bridge (DP driver's drm_bridge instance
created in msm_dp_bridge_init()) has a chance to do so. Change
panel bridge attachment to come after the "dp" bridge attachment (and to
use it as a previous bridge).

Fixes: 3fc9f2bcab38 ("drm/msm/dp: employ bridge mechanism for display enable and disable")
Cc: Kuogee Hsieh <quic_khsieh@quicinc.com>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Tested-by: Kuogee Hsieh <quic_khsieh@quicinc.com>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Link: https://lore.kernel.org/r/20220211224006.1797846-2-dmitry.baryshkov@linaro.org
[db: fixed commit message according to Stephen's suggestions]
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drivers/gpu/drm/msm/dp/dp_drm.c