From patchwork Tue Feb 22 06:22:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 545102 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 61455C4332F for ; Tue, 22 Feb 2022 06:22:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230239AbiBVGXR (ORCPT ); Tue, 22 Feb 2022 01:23:17 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:44874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230245AbiBVGXQ (ORCPT ); Tue, 22 Feb 2022 01:23:16 -0500 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F303B1EC65 for ; Mon, 21 Feb 2022 22:22:51 -0800 (PST) Received: by mail-lf1-x12c.google.com with SMTP id f37so22710455lfv.8 for ; Mon, 21 Feb 2022 22:22:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=B35/xt4SCJGelHk6jNUJaO+E/UL5oTZkMPlhEe6zMWM=; b=YomQ4ZP/jD1H5vI90v10St0iBplfmy54PC26Ap+h3GmjOR+gnoHnFHPpVUjgb6uA7w 34I3fAP25VKfcuB+fQA0iwkaxaTWciTAWNr2jDeni5IO1MLa1wpyjmQQJkvEk1Z/D5ou slQ8eumdxDCH6EhBCgWH6TeOL4MWQBeoDIZBy7wvU2f8kF4Cnp7CjiIAqlL47uWKstRf UmLRlZ3l6t7E1pkn02MCTxJDFSkKqGTaJJ+RTNK7zGHRWlLgkerz0CNYuhst5iY8Z8WA PXqlHFLZ51k9Kbhc+zMfhHPX0k8ueCdO1jihicO5UujGCmjGbLmIZBasDevJAWChcm3/ Wqmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=B35/xt4SCJGelHk6jNUJaO+E/UL5oTZkMPlhEe6zMWM=; b=r5szvKDlkagsvaqxRATmKb+1JyeyD5pwppi2QgRvuqN26ga0Ze77P4rQJfUw37QfWf 78ySnZn5FtD7/q8Z78lQ23wj9Qdrs073FpfEiCujPRzta+9WovK4YGLfllvx9SY9UYS9 MqATrMXinyQQE3crvTOebmVfmNHhlYM9zzMbFup6+TSIzFIdlAnXAJEh4BYPu5a2bgQc DclMoTVg7+fwVt2B8k40MmRXXqp81aH94A/LD34RoaRi6hTCcqT08KliiMGuuD6Ra5Y4 +be6I2n4jwuG5bk2jx7MDtF7W4H1YpFi8HKv92Dpo1hMI5zLMBosV9Ti32YNPObdrxU4 GymQ== X-Gm-Message-State: AOAM531Hnj8xdY8DyRPnS/LG2Ra5pk8VAlTOWDa5cMekrb3/Ttxr39Ek MNsBTcfAoAQJpkyBh6bGKH/Zrai7uAtrHA== X-Google-Smtp-Source: ABdhPJz5JzjpVpvHC0qK5xpcOikwk5W1ftiXPaHBXYJ7M0dDH3lK6AXehDmgzB247Sz8ItuHi57TCw== X-Received: by 2002:a05:6512:3094:b0:442:ca74:a610 with SMTP id z20-20020a056512309400b00442ca74a610mr16095850lfd.438.1645510970379; Mon, 21 Feb 2022 22:22:50 -0800 (PST) Received: from eriador.lumag.spb.ru ([188.162.65.160]) by smtp.gmail.com with ESMTPSA id j24sm1216245lfb.59.2022.02.21.22.22.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Feb 2022 22:22:49 -0800 (PST) From: Dmitry Baryshkov To: Bjorn Andersson , Rob Clark , Sean Paul , Abhinav Kumar Cc: Stephen Boyd , David Airlie , Daniel Vetter , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Subject: [PATCH 2/4] drm/msm/dpu: drop INTF_TYPE_MAX symbol Date: Tue, 22 Feb 2022 09:22:44 +0300 Message-Id: <20220222062246.242577-3-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220222062246.242577-1-dmitry.baryshkov@linaro.org> References: <20220222062246.242577-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This enum value does not correspond to any of actual interface types, it's not used by the driver, and the value of INTF_WB is greater than INTF_TYPE_MAX. Thus this symbol serves no purpose and can be removed. Signed-off-by: Dmitry Baryshkov Reviewed-by: Stephen Boyd --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_mdss.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_mdss.h b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_mdss.h index 4f8336cc7911..a9b6d0955539 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_mdss.h +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_mdss.h @@ -220,7 +220,6 @@ enum dpu_intf_type { INTF_EDP = 0x9, /* both DP and eDP, handled by the new DP driver */ INTF_DP = 0xa, - INTF_TYPE_MAX, /* virtual interfaces */ INTF_WB = 0x100, From patchwork Tue Feb 22 06:22:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 545101 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7AAD5C433F5 for ; Tue, 22 Feb 2022 06:22:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230248AbiBVGXT (ORCPT ); Tue, 22 Feb 2022 01:23:19 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:45064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230245AbiBVGXT (ORCPT ); Tue, 22 Feb 2022 01:23:19 -0500 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66F531EC65 for ; Mon, 21 Feb 2022 22:22:54 -0800 (PST) Received: by mail-lf1-x12e.google.com with SMTP id j7so22756851lfu.6 for ; Mon, 21 Feb 2022 22:22:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=iM+9d1vlrH8gvtpIKyDvBZU+m+WcrI9EbVXkjqnwrgU=; b=jpGdL2UWzg/HKSOtVLZnndwPDPtVWzbb/QNHcN8zho5Y4LDCr6KGRRmZM1LjG6NEDY JqmJeTejQukUyQGDA/TWOzev/9JOJU5/DGz2EpyXttNZDomlw9luYuOahhTVUDvPBTYL MaZb+lHFrE7aj9PKwD5qN3a8tgkzWQa9MHgCVQyi3fUxfiY1ScQBxWTbK7R8iv0ALLHD 8jrPCcI9OzfYNrYyr/PyC0P1xA2vEbufk887wsdKkDQA6oHSCj3ZJu2CHd9eydQAnmiW cmxImIEI6Y0qWMdGJAOw9fBHJkagYwdTyhVhRfp8rXrTKnpnk74wCD/YWowxVPCcl+ls V0KA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=iM+9d1vlrH8gvtpIKyDvBZU+m+WcrI9EbVXkjqnwrgU=; b=GHU2FYESFmHdy5JLXCE3iBGlW7jOqjlvtNrEXAA5zvMMHs8s44FSpp1rAvxEeZ5Ikt 0ofW8D0Jg6GvldDgUnMCWgxt3UYFDd8FkXiJd9SbDqxjGHa4By4oEFSA66U6fekQV/3W 1v6fq8JoLGzLRrm5nxrh+7B6O8FTWdt8VLGnM5NgTHdztzD6Uqidq3tqHgSTuQEvi1W/ Ahy3A+Uxzk71SvDEGnpi8WAo2rgCTpvt+f8EYw4+zKL+TO7o8cizqhHM+UGuojLtmDr0 UBszbnzyhVZ7R5QyYgs5syawglH7CDvqJtsc2YeN/pw7tIeML0SV6oQkFtfdMBMFTigL OvJw== X-Gm-Message-State: AOAM5305zabzd4d2i/oW+9jthxJAAjOHWA69mRSQ5HMtjmNCpkM/c1Z4 dBKnC5lsNjDD5dPJn0CBIuuG+Q== X-Google-Smtp-Source: ABdhPJzGc5/AYdPbOPH3yazzGj2gw4n70PKZg3iu2vcQFrpdXtOfIZtRtK2lwEwAqOAfSpt9NBsT+Q== X-Received: by 2002:a05:6512:3e0e:b0:443:3cba:9e26 with SMTP id i14-20020a0565123e0e00b004433cba9e26mr16341176lfv.590.1645510972828; Mon, 21 Feb 2022 22:22:52 -0800 (PST) Received: from eriador.lumag.spb.ru ([188.162.65.160]) by smtp.gmail.com with ESMTPSA id j24sm1216245lfb.59.2022.02.21.22.22.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Feb 2022 22:22:52 -0800 (PST) From: Dmitry Baryshkov To: Bjorn Andersson , Rob Clark , Sean Paul , Abhinav Kumar Cc: Stephen Boyd , David Airlie , Daniel Vetter , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Subject: [PATCH 4/4] drm/msm/dpu: drop INTF_EDP from interface type conditions Date: Tue, 22 Feb 2022 09:22:46 +0300 Message-Id: <20220222062246.242577-5-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220222062246.242577-1-dmitry.baryshkov@linaro.org> References: <20220222062246.242577-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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 Reviewed-by: Stephen Boyd --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c | 3 +-- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c index 478a608ba7f2..e76d240f554d 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c @@ -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; diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c index 116e2b5b1a90..1548614c508b 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c @@ -141,7 +141,7 @@ static void dpu_hw_intf_setup_timing_engine(struct dpu_hw_intf *ctx, hsync_ctl = (hsync_period << 16) | p->hsync_pulse_width; display_hctl = (hsync_end_x << 16) | hsync_start_x; - if (ctx->cap->type == INTF_EDP || ctx->cap->type == INTF_DP) { + if (ctx->cap->type == INTF_DP) { active_h_start = hsync_start_x; active_h_end = active_h_start + p->xres - 1; active_v_start = display_v_start;