]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/dsi: fix initialization in the bonded DSI case
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Thu, 25 Nov 2021 18:01:14 +0000 (21:01 +0300)
committerRob Clark <robdclark@chromium.org>
Wed, 8 Dec 2021 17:12:58 +0000 (09:12 -0800)
commit460bcf257f695b1745ffee6fb902f9cc48c7f940
tree997fe0a0c5e301643ca6d2b6ba626b0251ed5b6b
parent3095d87721d452c17bb1f2a191be8842fe0f0021
drm/msm/dsi: fix initialization in the bonded DSI case

Commit c4f0789fd9c8 ("drm/msm/dsi: Fix an error code in
msm_dsi_modeset_init()") changed msm_dsi_modeset_init() to return an
error code in case msm_dsi_manager_validate_current_config() returns
false. However this is not an error case, but a slave DSI of the bonded
DSI link. In this case msm_dsi_modeset_init() should return 0, but just
skip connector and bridge initialization.

To reduce possible confusion, drop the
msm_dsi_manager_validate_current_config() function, and specif 'bonded
&& !master' condition directly in the msm_dsi_modeset_init().

Fixes: c4f0789fd9c8 ("drm/msm/dsi: Fix an error code in msm_dsi_modeset_init()")
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Link: https://lore.kernel.org/r/20211125180114.561278-1-dmitry.baryshkov@linaro.org
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/dsi/dsi.c
drivers/gpu/drm/msm/dsi/dsi.h
drivers/gpu/drm/msm/dsi/dsi_manager.c