Skip to content

Commit a144400

Browse files
lumagrobclark
authored andcommitted
drm/msm/dsi: do not enable PHYs when called for the slave DSI interface
Move the call to dsi_mgr_phy_enable after checking whether the DSI interface is slave, so that PHY enablement happens together with the host enablement. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Link: https://lore.kernel.org/r/20210609211211.2561090-1-dmitry.baryshkov@linaro.org Signed-off-by: Rob Clark <robdclark@chromium.org>
1 parent 5434941 commit a144400

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/gpu/drm/msm/dsi/dsi_manager.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -373,14 +373,14 @@ static void dsi_mgr_bridge_pre_enable(struct drm_bridge *bridge)
373373
if (!msm_dsi_device_connected(msm_dsi))
374374
return;
375375

376-
ret = dsi_mgr_phy_enable(id, phy_shared_timings);
377-
if (ret)
378-
goto phy_en_fail;
379-
380376
/* Do nothing with the host if it is slave-DSI in case of dual DSI */
381377
if (is_dual_dsi && !IS_MASTER_DSI_LINK(id))
382378
return;
383379

380+
ret = dsi_mgr_phy_enable(id, phy_shared_timings);
381+
if (ret)
382+
goto phy_en_fail;
383+
384384
ret = msm_dsi_host_power_on(host, &phy_shared_timings[id], is_dual_dsi);
385385
if (ret) {
386386
pr_err("%s: power on host %d failed, %d\n", __func__, id, ret);

0 commit comments

Comments
 (0)