]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/msm/dp: do not touch the MMSS_DP_INTF_CONFIG for tpg
authorAbhinav Kumar <quic_abhinavk@quicinc.com>
Mon, 2 Dec 2024 20:41:59 +0000 (12:41 -0800)
committerAbhinav Kumar <quic_abhinavk@quicinc.com>
Thu, 12 Dec 2024 19:32:52 +0000 (11:32 -0800)
MMSS_DP_INTF_CONFIG has already been setup by the main datapath
for DP to account for widebus to be used/unused etc.

In current implementation, TPG only switches the DP controller
to use the main datapath stream OR use the test pattern but expects
the rest of the controller to be already setup.

Keeping the same behavior intact, drop the clearing of MMSS_DP_INTF_CONFIG
from the msm_dp_catalog_panel_tpg_enable() API.

Fixes: 757a2f36ab09 ("drm/msm/dp: enable widebus feature for display port")
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/626888/
Link: https://lore.kernel.org/r/20241202-tpg-v1-2-0fd6b518b914@quicinc.com
Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
drivers/gpu/drm/msm/dp/dp_catalog.c

index b4c8856fb25d01dd1b30c5ec33ce821aafa9551d..2a755a06ac4905f0ffa55a6df64ae4d948a78c0d 100644 (file)
@@ -1036,7 +1036,6 @@ void msm_dp_catalog_panel_tpg_enable(struct msm_dp_catalog *msm_dp_catalog,
        display_hctl = (hsync_end_x << 16) | hsync_start_x;
 
 
-       msm_dp_write_p0(catalog, MMSS_DP_INTF_CONFIG, 0x0);
        msm_dp_write_p0(catalog, MMSS_DP_INTF_HSYNC_CTL, hsync_ctl);
        msm_dp_write_p0(catalog, MMSS_DP_INTF_VSYNC_PERIOD_F0, vsync_period *
                        hsync_period);