]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 11:58:09 +0000 (13:58 +0200)
commit22efb1063406387de09d45f4dbe24add583d2557
treeb87d8da4126d27bd9320e7ed4e67561d50a784b3
parentec3f7e96adaee8252014ab5fde91ee6d8b869c61
drm/msm/dp: fix panel bridge attachment

[ Upstream commit 4d793a02c4967ab14d4ae5e86a51ee02ed78921a ]

In commit 8a3b4c17f863 ("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: 8a3b4c17f863 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/msm/dp/dp_drm.c