drm/msm/dsi: move next bridge acquisition to dsi_bind
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Sat, 9 Mar 2024 15:09:06 +0000 (17:09 +0200)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Mon, 22 Apr 2024 13:22:50 +0000 (16:22 +0300)
commitc73588c091684ea5cd7d77a4f1ce9a538a461ad6
tree26af82c3fa51f60186d6410b2347363d03eec974
parent9febe4a015b97952bd086a21062a55c49f31a117
drm/msm/dsi: move next bridge acquisition to dsi_bind

Currently the MSM DSI driver looks for the next bridge during
msm_dsi_modeset_init(). If the bridge is not registered at that point,
this might result in -EPROBE_DEFER, which can be problematic that late
during the device probe process. Move next bridge acquisition to the
dsi_bind state so that probe deferral is returned as early as possible.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/582210/
Link: https://lore.kernel.org/r/20240309-fd-dsi-cleanup-bridges-v1-2-962ebdba82ed@linaro.org
drivers/gpu/drm/msm/dsi/dsi.c
drivers/gpu/drm/msm/dsi/dsi.h
drivers/gpu/drm/msm/dsi/dsi_manager.c