From patchwork Thu Feb 17 03:53:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 543353 Delivered-To: patch@linaro.org Received: by 2002:ac0:e142:0:0:0:0:0 with SMTP id r2csp88882imn; Wed, 16 Feb 2022 19:54:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJyyrbZHL2iaGiQu3jjKG2kdnTBqrXCe1Rkju9MfJvz35D3WYgS/Urn3ds/9nPQIkV/c9g0f X-Received: by 2002:a63:6442:0:b0:362:ad55:f5e5 with SMTP id y63-20020a636442000000b00362ad55f5e5mr958687pgb.180.1645070059076; Wed, 16 Feb 2022 19:54:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645070059; cv=none; d=google.com; s=arc-20160816; b=dOv+pYuT8s/daAQDYeFPEjK6m13WYBIWZwXGKFO8eZl2iMod008m2vOpg7Yj9vj6ys HQEanhKMvPsuG5Y7MPmey83DotpJPLNm57OoFLRTEVm4LjNxouHUnNutVli27u9ojsKu grZrlcR2FnH4/omDCntuW/2niXKu1fHp47yu95B3TbngoK5/ubqkLpn5K2lds/u42Fgw 32T329VuLN3WCDMcKMVy5UI0tl/i2rB4q11JeeljVuHplQkRaYXKOVpYOi9lQ0GEUmKR IkIPyOPuRzab9IE4ACDOpJ1jZGPIGgaM42TN+CHZfANmDNoMbeQtjJZNv8kpHx41748Q ze0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature:delivered-to; bh=RR1N4aPEBsDSrMkYWyN5C+eYSYGI+wdfjT+eCdTVa9U=; b=OG0NnLbVdLSGhd7wiQFbE0a/E6/6USNeIOxoSkqKF0vmMA2B5zZ28vZY1qahBIZ+sy jykVVO9MiKmy5Erpk9BqRo+6qRZ+tvDYR80ef17Kmp9Wii21DgZXYLhrb21bkzqmZrB+ UKIPeiwxQxpZCcIqBhMOwnYXGExieAZc8xgaPuW74uEPk1Gdgy9S4XNvh7mzl9unt4vD XmSsKKJzn956WHAOuPJvUy+ROaKbb0Mqkrk5kacSGyzpW+1KjvTjBmxMQWEBW+ufqHXq jDdngDZk1j8024fzEqY6EVBr9ncyj8H2FrYzD9aKGQTUrtYHk9lna530Zn9eWwEnxVmH 5mCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=YCnwYlAv; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id d71si6995696pgc.113.2022.02.16.19.54.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Feb 2022 19:54:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=YCnwYlAv; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 981E010E79A; Thu, 17 Feb 2022 03:54:16 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by gabe.freedesktop.org (Postfix) with ESMTPS id AF8E310E75F for ; Thu, 17 Feb 2022 03:54:04 +0000 (UTC) Received: by mail-lf1-x12f.google.com with SMTP id e5so7538468lfr.9 for ; Wed, 16 Feb 2022 19:54:04 -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=RR1N4aPEBsDSrMkYWyN5C+eYSYGI+wdfjT+eCdTVa9U=; b=YCnwYlAvZ7/nS7LPvTABXHKm53V4PGUIaIBxHLF2KydqNgd1nAQ5/A/0ok7TobG8G7 vycvAQ2fh6huKnrHhICiT1Tr+0jbqcR3OAY136hQ6ZN7CxDJM0j00WsU92y9gutn8GIA 8ssmV6+Z0V3E0oYO+RpOiP0rIHJ4PzEFmNd6r/4UjKqqjQuSNVaB1QqdT33fzYE/qChu SA4smIhHj5xlikPyBa88uVO7J+7Kkp13NlHB/WMO/p9jI1P2FcrDJ3TlMYLwqTvtRCjX r1PTXx+QfICidSWTpCskAyDeMc6KOzYa0S6xfc2KG/oVhXojtHmewRZIEM/IQLtEZ+GH ON3Q== 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=RR1N4aPEBsDSrMkYWyN5C+eYSYGI+wdfjT+eCdTVa9U=; b=s+bNzh6qi1SdWQexgd34L9svKggex1iRgGxgMvGgn/LUj0LS6cqNw6RWSXgtKOBRlY xmMt/xSFioqI1nfZ+DOKXc2QAFFE4iXsC39txiW0hUG47OL6XVCCF8yvO0acS49g7RGQ hYwiOSI4DbJm/fqTJGBYWPrGMV1NkundN/sUY3Je2uVVVH8X+aevJKaI/U1lwapbz4OQ QXlTtg5FJYBUKDwdS846SFNne8q1qHDyI1rs8oXrMIIlEEfh5RpEc4X3pFMRSxshGHu1 dc/+i1iyLYTsP40tBScxdlx4iTeacX+739da+7otUdWuARx33+3qA98fg+bg+Vi5y5TS FZJg== X-Gm-Message-State: AOAM530kM1qmmJaFipkVa92DAJvDFPbm432n3xwJKkLOWKDG/O4ZyuDq pZkfqnYq6Qc/IkpuRGBMx6c1/g== X-Received: by 2002:a05:6512:3157:b0:443:6407:ea58 with SMTP id s23-20020a056512315700b004436407ea58mr768650lfi.81.1645070043080; Wed, 16 Feb 2022 19:54:03 -0800 (PST) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id h9sm1575454ljb.77.2022.02.16.19.54.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Feb 2022 19:54:02 -0800 (PST) From: Dmitry Baryshkov To: Bjorn Andersson , Rob Clark , Sean Paul , Abhinav Kumar Subject: [PATCH v2 3/7] drm/msm/dpu: remove msm_dp cached in dpu_encoder_virt Date: Thu, 17 Feb 2022 06:53:54 +0300 Message-Id: <20220217035358.465904-4-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220217035358.465904-1-dmitry.baryshkov@linaro.org> References: <20220217035358.465904-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, Stephen Boyd , freedreno@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Stop caching msm_dp instance in dpu_encoder_virt since it's not used now. Fixes: 8a3b4c17f863 ("drm/msm/dp: employ bridge mechanism for display enable and disable") Reviewed-by: Abhinav Kumar Reviewed-by: Bjorn Andersson Reviewed-by: Stephen Boyd Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c index 02d0fae1c6dc..16ae0cccbbb1 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c @@ -168,7 +168,6 @@ enum dpu_enc_rc_states { * @vsync_event_work: worker to handle vsync event for autorefresh * @topology: topology of the display * @idle_timeout: idle timeout duration in milliseconds - * @dp: msm_dp pointer, for DP encoders */ struct dpu_encoder_virt { struct drm_encoder base; @@ -207,8 +206,6 @@ struct dpu_encoder_virt { struct msm_display_topology topology; u32 idle_timeout; - - struct msm_dp *dp; }; #define to_dpu_encoder_virt(x) container_of(x, struct dpu_encoder_virt, base) @@ -2128,8 +2125,6 @@ int dpu_encoder_setup(struct drm_device *dev, struct drm_encoder *enc, timer_setup(&dpu_enc->vsync_event_timer, dpu_encoder_vsync_event_handler, 0); - else if (disp_info->intf_type == DRM_MODE_ENCODER_TMDS) - dpu_enc->dp = priv->dp[disp_info->h_tile_instance[0]]; INIT_DELAYED_WORK(&dpu_enc->delayed_off_work, dpu_encoder_off_work);