From patchwork Tue Feb 15 14:16:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 542790 Delivered-To: patch@linaro.org Received: by 2002:ac0:e142:0:0:0:0:0 with SMTP id r2csp502024imn; Tue, 15 Feb 2022 06:17:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJwfuzeYCmq9VbkXdmosSfMyuE2ohWoGnDsNeiH92L0NJfXNRtSYzvuzSVvstspmwUMWy6yf X-Received: by 2002:a17:90a:46cc:: with SMTP id x12mr2753060pjg.105.1644934628412; Tue, 15 Feb 2022 06:17:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644934628; cv=none; d=google.com; s=arc-20160816; b=afmeKNvJVpYfQ52+1fEaMu5Zt3YG+OwSctwqMTxL6E2GGD25GbgR5h77OjAR/y39/d Nj9Ll14CjKWJjKdzbuttbEra0wX4aGZxuGw6qG8tKVhQ478svNh6mD45tscJOeK1nTKc 7aQfEDFOxEtMgYlZBgOEH/K36G/kUIhsDifTcgSEK3j0kZ5L5I1itwJu5yM7QerkpN6A oJnNX+ru0DK8pN+L8O4qHk/KH+pM9mtgKqRRZ0S4AZYf709Dzr1MEBYqoMWj6YUgIaub +ye/IB32lkWZjykjydE40jkP3qkhrssGMD+5CoVBkvbwY5HNP5DXpm9jmqOqCgtFOqNr Cbkw== 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=SfdH2ncwmJDrVRdbfNY5r2Qh/hOw/XHnUYkKFPYNhyM=; b=QYyJaRAd2rIkv0Z984ySc+sbpKmmprdwl9jpLt4qfFaILkWDi2LtWT8O2v8RpCVDkn Ah+WPkBJVbH1UypoL57eZMCIe4OMYM6VXekhXqXerQ6hfI+jDj66NKsMJG81+/2nqj0d WenSsCo6Zp7AvJixikoJSirRsI1LaYkR4a9NELTq1u5OtsATzDHXHwv8/VATMAvJixTw eITZUVshynBL3+GZLIcvL7adPnk721C/r60Ld5rcWoa29Sd7vM9gP2qOfOB5p6NtqAZL +H5y621EvNA0pBH8EPT4WLpvrdad3+pVkEA/kTtEIxJBz/GrcKj2n1Z3CS+SYoux9jVP fr8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=psXOCZob; 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 t185si2908196pgc.97.2022.02.15.06.17.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Feb 2022 06:17:08 -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=psXOCZob; 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 A96F810E53A; Tue, 15 Feb 2022 14:17:06 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6061510E5F3 for ; Tue, 15 Feb 2022 14:16:50 +0000 (UTC) Received: by mail-lj1-x235.google.com with SMTP id c10so14245905ljr.9 for ; Tue, 15 Feb 2022 06:16:50 -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=SfdH2ncwmJDrVRdbfNY5r2Qh/hOw/XHnUYkKFPYNhyM=; b=psXOCZob0jpOWF7asuePKZv4UaAI+c7tjgwZ2VMSWYNIHWrplAjMRglhd1F/GuHwdO fvzJteV13aqlfjbm+xe2i4eVNLwUd8aFaQIhG2GYA9eTz9BkfbbO22Fx5dbkvggU1aLi 4xuBsSnwM8IUTtgnf/F75xhfr7hMYJwdfmhSKdhDAmlQe4UYEzWBv59SwtqdenbMHwRB DW9Y+80j2IMssDKy9S8KKt5h4DI7Fs0fYGiaP2ws4ZrkjTs6RiJxvxArBXRzITNEZtMc SB2ClYIQm0Q4h/LBPhdBr6mKIXGhe/9qEYYZayPYQWhya/hRYlecFQ7rEq5EGSXh2h8a rUlA== 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=SfdH2ncwmJDrVRdbfNY5r2Qh/hOw/XHnUYkKFPYNhyM=; b=QfCQpV48e+Cb/11ZIt6iWkyVDbFett90aFsoSem35jKpOlGuJZyhgpQakBUw4JiPzv tABSZvlRLFj9IYR1vu1PnAr/rlXKQSGf44xb+ZwcYdlPDBfC9KMYT5zabhU000oiE+79 01A0JRbPb2lLoppNbusnZhKh/xP9NYe94hiPjf+wE1mlbsKibi6ScRviOmeDhfG5ARU8 ZEIYhmDlb/KlSw1jEVHS7TMSQ0OMvpcx3RLMAHoCZhW/FbXdy4EYnfowMDfHEHskZysy 6osLxe66CF3PnrDS/ZwV5K7oDMvmpREiDjjff4MFlfQDeaZgZIf+GWQtZQQBTKgvDyVl hAEw== X-Gm-Message-State: AOAM5309GfU4/KBryuRjjRfpzx3PctGlvmz1FBhiugBqRANH0dKF/DxL R0Ab6j6pVsI6WQIgw84v7EYE/g== X-Received: by 2002:a2e:88d4:: with SMTP id a20mr2735763ljk.187.1644934607054; Tue, 15 Feb 2022 06:16:47 -0800 (PST) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id m16sm1018044ljb.131.2022.02.15.06.16.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Feb 2022 06:16:46 -0800 (PST) From: Dmitry Baryshkov To: Bjorn Andersson , Rob Clark , Sean Paul , Abhinav Kumar Subject: [PATCH v2 3/8] drm/msm/dpu: remove msm_dp cached in dpu_encoder_virt Date: Tue, 15 Feb 2022 17:16:38 +0300 Message-Id: <20220215141643.3444941-4-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220215141643.3444941-1-dmitry.baryshkov@linaro.org> References: <20220215141643.3444941-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 Signed-off-by: Dmitry Baryshkov Reviewed-by: Bjorn Andersson Reviewed-by: Stephen Boyd --- 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 c59976deb1cb..401e37f50d54 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) @@ -2123,8 +2120,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);