Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/msm/dsi: drop msm_dsi_device_connected() function

Since the commit 8f59ee9a570c ("drm/msm/dsi: Adjust probe order") the
DSI hosts are not bound through the component framework if the DSI
driver wasn't attached to the DSI device connected to this host.

Afterwards, if there is no bridge (including the panel bridge) created
for the DSI device then devm_drm_of_get_bridge() will return an error,
also making msm_dsi_manager_ext_bridge_init() and thus DSI modesetting
init fail.

This way there can be no 'unconnected' MSM DSI bridges. Remove the
msm_dsi_device_connected() function.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/561692/
Link: https://lore.kernel.org/r/20231009205727.2781802-3-dmitry.baryshkov@linaro.org

-11
-6
drivers/gpu/drm/msm/dsi/dsi.h
··· 61 61 void msm_dsi_manager_unregister(struct msm_dsi *msm_dsi); 62 62 void msm_dsi_manager_tpg_enable(void); 63 63 64 - /* msm dsi */ 65 - static inline bool msm_dsi_device_connected(struct msm_dsi *msm_dsi) 66 - { 67 - return msm_dsi->external_bridge; 68 - } 69 - 70 64 /* dsi host */ 71 65 struct msm_dsi_host; 72 66 int msm_dsi_host_xfer_prepare(struct mipi_dsi_host *host,
-5
drivers/gpu/drm/msm/dsi/dsi_manager.c
··· 305 305 int ret; 306 306 307 307 DBG("id=%d", id); 308 - if (!msm_dsi_device_connected(msm_dsi)) 309 - return; 310 308 311 309 /* Do nothing with the host if it is slave-DSI in case of bonded DSI */ 312 310 if (is_bonded_dsi && !IS_MASTER_DSI_LINK(id)) ··· 361 363 int ret; 362 364 363 365 DBG("id=%d", id); 364 - 365 - if (!msm_dsi_device_connected(msm_dsi)) 366 - return; 367 366 368 367 /* 369 368 * Do nothing with the host if it is slave-DSI in case of bonded DSI.