drm/msm/dpu: drop INTF_EDP from interface type conditions
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Tue, 22 Feb 2022 06:22:46 +0000 (09:22 +0300)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Sun, 1 May 2022 23:07:08 +0000 (02:07 +0300)
To remove possible confusion between (old) INTF_EDP and newer INTF_DP,
stop using INTF_EDP in DPU's code. Until the 8x74/8x84 SoCs are
supported by DPU driver, there is no point in using INTF_EDP.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Patchwork: https://patchwork.freedesktop.org/patch/475560/
Link: https://lore.kernel.org/r/20220222062246.242577-5-dmitry.baryshkov@linaro.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c

index 21c8dd1049083bd011ccae021f6361bc69bc8195..2c14646661b7746d1bca09be435eae217ece8c59 100644 (file)
@@ -92,8 +92,7 @@ static void drm_mode_to_intf_timing_params(
        }
 
        /* for DP/EDP, Shift timings to align it to bottom right */
-       if ((phys_enc->hw_intf->cap->type == INTF_DP) ||
-               (phys_enc->hw_intf->cap->type == INTF_EDP)) {
+       if (phys_enc->hw_intf->cap->type == INTF_DP) {
                timing->h_back_porch += timing->h_front_porch;
                timing->h_front_porch = 0;
                timing->v_back_porch += timing->v_front_porch;
index 2ae30da7a9c7198889f13d4a6d7084afbc6e7378..3f4d2c6e1b452d78ce99a7f67c79aa79dfa01f5b 100644 (file)
@@ -111,7 +111,7 @@ static void dpu_hw_intf_setup_timing_engine(struct dpu_hw_intf *ctx,
        /* read interface_cfg */
        intf_cfg = DPU_REG_READ(c, INTF_CONFIG);
 
-       if (ctx->cap->type == INTF_EDP || ctx->cap->type == INTF_DP)
+       if (ctx->cap->type == INTF_DP)
                dp_intf = true;
 
        hsync_period = p->hsync_pulse_width + p->h_back_porch + p->width +