Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4433387pxb; Tue, 2 Nov 2021 09:38:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzp7k/wgm0VPRk0mGlZ+IiovX9xgDbVk9BdoU4JXpfwYCAx9v6a8vfBzQYaIeo65Q75eqk X-Received: by 2002:a17:907:16a1:: with SMTP id hc33mr13544111ejc.486.1635871115772; Tue, 02 Nov 2021 09:38:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635871115; cv=none; d=google.com; s=arc-20160816; b=k32cTP9zOQrbZ/kVpp0PFJmbSmiu35hvOeAYIFnwQWyLMGwm5fBMg3Ek9a+Hay1kPT UE389jivoxl0YVpMlBCLsg1c/jVutUD7Z+QwXEfkVTuFlYh+Z2BT4sIUaygImVOWxzX5 uhKzFbCPZdnMG46cXbku3dNqmJlRs+SxooFZVrnslpOaue5DQ7bjh5LJro3Nf16UpFRH eBdgZJ4qCypuM7ZkzqzczQoO9knlxu9REBQqAxBsuQnDgctA4XBR6wNS7pBVa0WJiur0 y2/J5SJ4JRrqywt1PVpibVKThUbwFms3mcJs18MvCUZr4EwEVBw+DOlr+cZmHt1cEZTs +Ssw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=FuNpocQi4pocnnGlw+gkPjkIozlrXXBhAiLbx0uyBSE=; b=pvcihlcbFyQSIAmGW9mUaDSDrA4w1u0zLylB0KarAPkYKFzPWWoxMPBRLr05GcrrkV sDR70y3IY2pCYI6k2gWSqYhHmpzMC/YWXlm2LcyIuc8Y5D7Xu+D3zgGG46U/Jj2ASOAc kXFLz/IOGGUWAMbtf7s4ostgBOl0BigHqZW1bA3Pjamg9g62Bt72btOv83WgUia71hit 0JQWD7lLY2wj+JfYbGPi+edcX+w4chE73R83tJJv/Mofkm1dmPmANRxY5LI74yRpL75/ 4DHuGfX4JfJQGpol8OI+adiHnTdNUSdXmiT/+VhNFXU3K89i4HncJa/hGxd4p36DLBF7 lBig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@raspberrypi.com header.s=google header.b=TQfVT0o9; 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=raspberrypi.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m5si7962601edc.80.2021.11.02.09.38.11; Tue, 02 Nov 2021 09:38:35 -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=@raspberrypi.com header.s=google header.b=TQfVT0o9; 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=raspberrypi.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235154AbhKBQiv (ORCPT + 99 others); Tue, 2 Nov 2021 12:38:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234882AbhKBQiq (ORCPT ); Tue, 2 Nov 2021 12:38:46 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD753C0797B5 for ; Tue, 2 Nov 2021 09:21:44 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id v127so16021219wme.5 for ; Tue, 02 Nov 2021 09:21:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FuNpocQi4pocnnGlw+gkPjkIozlrXXBhAiLbx0uyBSE=; b=TQfVT0o9MR49aeFAQKvXyRgJnF8SgQZwxFl6y5i0aLo8NLuJQauP37MW/cddpDOslf sCe/WNGTQEjcf7Wwk1bDINL/ejg1TfDz3nJf4rvipi+dLKmRGBsO5j+5w9SwKqa9sSN+ NSIxGTcMP1uqxkf31C7Zlj+3Rr7c0NsxxklN7wEG3Sn1oc4KqXgtaL2dd62SfdPfxbH/ IuOf7JrXRfqqYeh7vqkJqUpb5eDUDLSuXe7CgzOzdKmGgrW4E3uFzPY8cJPLkPQxqNmv 2jzh36GecFwHi1hb5DcpO6wegifg/g2E9GpjK2q1pvasSQoIx3iRwPm7ZEo9Q/ge9rUb lM9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FuNpocQi4pocnnGlw+gkPjkIozlrXXBhAiLbx0uyBSE=; b=hPkyNVrSQlfVIpGGFk4kXfH0hh6bnl2nKT2ruILiFix4nueeq1ue+RsorYPACABg1B I2fKfgVremJfE+87enBQ32GMmKn6FVch6ps3f5dy4GtYLnnqueu7MGK7zAPc7K//7pBE /+CRcGTqoSPlFaD3OvVeELLHzJqx2zX9JnKpjwqrisdkyDwpZZKoaSZcSN9Zo7li9J33 Zhw7m2rGVVX5+sP5ANjwbofzx3C+I4mvJdcActilsjGHzS2hsaEmH+u0ozEnPLo/9Sa1 w68GJ8pAENq9AmgfaIvtEb9RDTV/GCfZgGC/CxxhFfqm+fwL0STFtMIf796FBJYfsHho g1tA== X-Gm-Message-State: AOAM530R9VbwbP4In4KhGM1fhfkWwAvZT0EmebbWmjk0GztrmKzMVC6O IPcICmNv2dDJ4G3GZMnl92DMrqvwGgEw07ZWv7KwLQ== X-Received: by 2002:a7b:cc07:: with SMTP id f7mr8408896wmh.106.1635870103486; Tue, 02 Nov 2021 09:21:43 -0700 (PDT) MIME-Version: 1.0 References: <20211025152903.1088803-1-maxime@cerno.tech> <20211025152903.1088803-4-maxime@cerno.tech> In-Reply-To: <20211025152903.1088803-4-maxime@cerno.tech> From: Dave Stevenson Date: Tue, 2 Nov 2021 16:21:27 +0000 Message-ID: Subject: Re: [PATCH v8 03/10] drm/vc4: Make vc4_crtc_get_encoder public To: Maxime Ripard Cc: DRI Development , Maarten Lankhorst , Thomas Zimmermann , Daniel Vetter , David Airlie , linux-rpi-kernel@lists.infradead.org, LKML , Maxime Ripard , Nicolas Saenz Julienne , bcm-kernel-feedback-list@broadcom.com, Emma Anholt , Phil Elwell , Tim Gover , Dom Cobley Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 25 Oct 2021 at 16:29, Maxime Ripard wrote: > > We'll need that function in vc4_kms to compute the core clock rate > requirements. > > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > 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 >