Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp301552pxb; Mon, 25 Oct 2021 08:34:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSduJKYFmTvVKBNsF7a4tvm/xHXtF5rho109e9Pm7MS5vEcOvRidYKi71txWlfj5JeRbB4 X-Received: by 2002:aa7:cb92:: with SMTP id r18mr27925937edt.282.1635176088581; Mon, 25 Oct 2021 08:34:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635176088; cv=none; d=google.com; s=arc-20160816; b=aHN84X9UaLnyQ7Ju1GOIxn3hWMoSRhXrxavdP5ah3MY/EI3JOfvyfIBYJ5RJQdfj0W 1wddj4+3cob7L/qQ52UKTj1Lmy0c7MA0SKG3VNHgSGIwxpUS3ntVxCtXWx4EdI+2/TvZ GYrIqpbvKC9zlatqddp9BUxElrriisbM8k73CWRbUxnjHmkSh5X3URLZjqo2XlVAuqGI ua7IcLK2gUcaTv6FVYv84PHQukqUvhsBUPsyF80ma5ary7eXh7EbL9iyr+g55KvOSFLl S1rhO3St0kPXgZXDVZEM2LzCGgAGLYXKbyFlhvLUyuo0EytTb9j14qtPYBFtXnpTexNL sUQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=vuJjsFFLiX9bwl77Xeh7BHL+u1uEF6vHeUVCMxURHPM=; b=jYEt2FiEE+sdhOq18Mhvlam/VcG6DCjifEyaeVBVVCGF7wFNgbZ+Sk0PQUl13pRNyp CvUxAbkCOUJuSTFwBSnZmnO+KtIXRa78eLLNGQHq2BlBAlNavjqJmo719BzXYp+3ao+h yfsS1yrDtNSrOONPbyscfXu0/rBFLg0DAbau/B6XrRvdIcSVGkETDTFDPYSPuxSPbBSs ySsKMttRqaqntR1QQ5/R9YPOZDF8yk6aCQLMGz+hubuMfTUzpd0caZeK5G3PGTTZrcGS +ddc6sHes3PLhodmsF4M6GwzSElqG2eKmoB4KqiBmvnUq+3fDOqQUHKtUs4M3f5VVGlE A42w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm1 header.b=hDRe+8kA; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=cBErPvwD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cu17si22523002ejb.676.2021.10.25.08.34.24; Mon, 25 Oct 2021 08:34:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm1 header.b=hDRe+8kA; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=cBErPvwD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233876AbhJYPbi (ORCPT + 99 others); Mon, 25 Oct 2021 11:31:38 -0400 Received: from new3-smtp.messagingengine.com ([66.111.4.229]:49957 "EHLO new3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233868AbhJYPbg (ORCPT ); Mon, 25 Oct 2021 11:31:36 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id 8FBCB5806D7; Mon, 25 Oct 2021 11:29:13 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 25 Oct 2021 11:29:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm1; bh=vuJjsFFLiX9bw l77Xeh7BHL+u1uEF6vHeUVCMxURHPM=; b=hDRe+8kAWV2iJxY5OlX/7mftL+bEo HNVmcgsFTIojz8E6Gk9oFkRoa8CLLC6YTmmaBK1EH1flHHro74MMX3BWt3IBMuLY fT0jhEGxsCOenW0XCa/zNTFLBhmUaKxDIfmYEd5Etp0d+wQwf9GdKzmeFOYyQ8EU dBicojp+emWoSaYc5o6d/UhWNEdcXm4hw8Y16jzoOubr5StXO6u9vDNR1Hk1g9+c ipb0yGPyfLWnSjfH/c+gMyoJxZzR/7NgDoq3MQNmp2Zw+rC9FE9rOnOTcOuzomQc U6rq6v1orz4Hx1RsgQ7E5TiYvL+3pQIg81Y0NBLSJ6n3bAlZnC/QzsmQg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=vuJjsFFLiX9bwl77Xeh7BHL+u1uEF6vHeUVCMxURHPM=; b=cBErPvwD LjMWg3MoButALRmjvnV2UlennM1hWhU59zpTxCLIk5hdeWNYH/oQxs62mg6KKcmb Ae0fYtrpE1hCZlPO9fiUXpxyyfB0qbBoZjp4hmv5xfwb//7Dm5dICbaVsR2bK+W1 +Mq1dJbc8HnUWijNA/1F1zepaX8C/qwVI5xUw53GqtBTDloTpLzdW/FARyhl02to 4x6q8kterd40ZvVwUUUyrZClzGvUyY4T/I9E1mb+/OGx88Zj96b9mGrhBfCfAbRO nFHQxaMRjBqdHLovAP7K/RIegy787hSqH58kyZxjb/4d0Fa4al4/cnmWRdn6kgQ3 Y9SceQbapGCHVA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvdefhedgkeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeforgigihhm vgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrth htvghrnhepvdekleevfeffkeejhfffueelteelfeduieefheduudfggffhhfffheevveeh hedvnecuvehluhhsthgvrhfuihiivgepudenucfrrghrrghmpehmrghilhhfrhhomhepmh grgihimhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 25 Oct 2021 11:29:12 -0400 (EDT) From: Maxime Ripard To: dri-devel@lists.freedesktop.org, Maarten Lankhorst , Thomas Zimmermann , Maxime Ripard , Daniel Vetter , David Airlie Cc: linux-rpi-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Maxime Ripard , Nicolas Saenz Julienne , bcm-kernel-feedback-list@broadcom.com, Emma Anholt , Dave Stevenson , Phil Elwell , Tim Gover , Dom Cobley Subject: [PATCH v8 03/10] drm/vc4: Make vc4_crtc_get_encoder public Date: Mon, 25 Oct 2021 17:28:56 +0200 Message-Id: <20211025152903.1088803-4-maxime@cerno.tech> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211025152903.1088803-1-maxime@cerno.tech> References: <20211025152903.1088803-1-maxime@cerno.tech> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We'll need that function in vc4_kms to compute the core clock rate requirements. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_crtc.c | 8 ++++---- drivers/gpu/drm/vc4/vc4_drv.h | 5 +++++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/vc4/vc4_crtc.c b/drivers/gpu/drm/vc4/vc4_crtc.c index e3ed52d96f42..7cfd4a097847 100644 --- a/drivers/gpu/drm/vc4/vc4_crtc.c +++ b/drivers/gpu/drm/vc4/vc4_crtc.c @@ -281,10 +281,10 @@ static u32 vc4_crtc_get_fifo_full_level_bits(struct vc4_crtc *vc4_crtc, * allows drivers to push pixels to more than one encoder from the * same CRTC. */ -static struct drm_encoder *vc4_get_crtc_encoder(struct drm_crtc *crtc, - struct drm_atomic_state *state, - struct drm_connector_state *(*get_state)(struct drm_atomic_state *state, - struct drm_connector *connector)) +struct drm_encoder *vc4_get_crtc_encoder(struct drm_crtc *crtc, + struct drm_atomic_state *state, + struct drm_connector_state *(*get_state)(struct drm_atomic_state *state, + struct drm_connector *connector)) { struct drm_connector *connector; struct drm_connector_list_iter conn_iter; diff --git a/drivers/gpu/drm/vc4/vc4_drv.h b/drivers/gpu/drm/vc4/vc4_drv.h index 4b550ebd9572..f5e678491502 100644 --- a/drivers/gpu/drm/vc4/vc4_drv.h +++ b/drivers/gpu/drm/vc4/vc4_drv.h @@ -544,6 +544,11 @@ vc4_crtc_to_vc4_pv_data(const struct vc4_crtc *crtc) return container_of(data, struct vc4_pv_data, base); } +struct drm_encoder *vc4_get_crtc_encoder(struct drm_crtc *crtc, + struct drm_atomic_state *state, + struct drm_connector_state *(*get_state)(struct drm_atomic_state *state, + struct drm_connector *connector)); + struct vc4_crtc_state { struct drm_crtc_state base; /* Dlist area for this CRTC configuration. */ -- 2.31.1