Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp341874iob; Thu, 28 Apr 2022 03:50:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyC7h1Hs1lx53vjnaTBFVcTPZeR5bxTWaOdHSZl14S6+3EbB5e64w7YDkbs9pmkN3+UTgoQ X-Received: by 2002:a17:902:bf06:b0:14d:8c72:96c6 with SMTP id bi6-20020a170902bf0600b0014d8c7296c6mr32783975plb.156.1651143042574; Thu, 28 Apr 2022 03:50:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651143042; cv=none; d=google.com; s=arc-20160816; b=QjsVjY5UcI7CnICSZSmWhDWNBTqiRqOdJ0CY60i5qivWbttgVc7hspr2oY3g/TQEUw OrCUc9iMGxnCYMpcavJp7jII6T98+WbMSmKRxxFCIcnaonRR5USH8RuHUtPI8PNeqdT3 IoXMLdrierHMezlDI1V6l/tnh2r2vHkwns9eQJD/STN/mAv2auzrvNx71i96lU+rgzqG MIkra6h9KAtwKJ3IYimC2+oNEi7W7tm9v+iQxPd/BAjI/wfUFRlefeCAUoaVU4sr5csr JapYbBXBRfO5z4Y7DWmc+Ibkc9WP9kC2jXRGXvnz25grI0wr+y2mxoJ8HPrEEj6FzvwQ NPxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=zhx4d/dBHTpW4W1OKZ4iXHkQAtUQxcXTyp97K6x+HYQ=; b=xa6YSN63zjXoPxYc3CnUp08kgrDjeHKnlXoo1+18vwR4XTS1NTFb3cQNTrsrkOHdNR uwXi5eJHZJyo0RHuDOjHWCZ5gtRppQQs5a6xyY50bL2N0M+E9Bprjxtihoh+DGrunJuP CqZSeKEZNd7Y5+5a5I4etwuyGFRCxQw2wtpMt6xHBCLFZhOS0WUY5SnlSm5VUWwF6nNE g1Lg/deC+FuBszxSNXs4OXno2vjY35pbf2IBbvyzZpnyrYKtqBDjvsa0KGzPJQ2V9Tn8 oUMfaXAkKeDF9d3XvzGAaq2vSGcyrWk+soMhfAIsWokAkZ0cldmIEg5YrIptrvglLVMH 2MCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=pFbjr0eX; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=SMmOK5aA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g11-20020a656ccb000000b003816043f089si4174446pgw.638.2022.04.28.03.50.28; Thu, 28 Apr 2022 03:50:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=pFbjr0eX; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=SMmOK5aA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S1343818AbiD1IO7 (ORCPT + 99 others); Thu, 28 Apr 2022 04:14:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233817AbiD1IOt (ORCPT ); Thu, 28 Apr 2022 04:14:49 -0400 Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BAF975E5A; Thu, 28 Apr 2022 01:11:35 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 4B3DE3200033; Thu, 28 Apr 2022 04:11:34 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 28 Apr 2022 04:11:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; t=1651133493; x=1651219893; bh=zhx4d/dBHT pW4W1OKZ4iXHkQAtUQxcXTyp97K6x+HYQ=; b=pFbjr0eXgD79GamR8HiFg2cHKF 2fl1+6DilEH6u6u7qHnebZo7pX2UBZ9S168D4JI8ryxEpqR2Eha8w66XTsj6D8h/ wrkCC07e1ULAH34JKLtFodWK+VvJIGZ91R/uc3a1uETArsX+92219SeKbKvGDUep 8dG5iJhRyqpdI6/Rk0X3dOksQ6POqKQYnmvfsi0qUUhGaQ4im46c/fZwYiKlgY5R 1WasH7xwGmRFkrXwUTpKJotZZWrQzMEyAPLQnBl1SStvOQ7Ywvbz1+fajHICHUwS cWbw1wrBcWA3uhar7Sgm0mgM7mfoncb+0a6QGDnra3ii7+S8YRHFJW/qFhHw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1651133493; x= 1651219893; bh=zhx4d/dBHTpW4W1OKZ4iXHkQAtUQxcXTyp97K6x+HYQ=; b=S MmOK5aAjnb3bCezwArQMGfxK81ncC8TnKiVwG7b0f+UZ9ehGY0XNOfVDDOblrpYN Vr9UaIA/jnpv9WEuC1N6Ido7agp2Dwmls9vVsGItfvGvkx/t8oWaQk5hB5zKc8Ld LU+Y1QweFE81HfHHma70jt242Ee1Oq4Vlbmsq7CLmj9bAiqgMYkDRAtn4U1EMHuS D/IsZtPSn4dJob5+5LP4BFHA69LdQTHNJsXzlYfPKzdVxZqO8JTjNLAh9wtDu36g SydKU2teXFmKD6jScXdlTX2h27JCHP2pkqdSJiEd6Zw+ki8OY+l4jzEQnwSj+gQ9 TL94D9bVhvhzOqZnsmaKQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudejucetufdoteggodetrfdotffvucfrrh hofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgenuceurghi lhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurh epfffhvfevuffkfhggtggujgesghdtreertddtjeenucfhrhhomhepofgrgihimhgvucft ihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrghtthgvrh hnpeejgeeiveevvdfgffeftdevuefhheduveejieefgeejveeuhfetkeelgfevteefffen ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmrgigih hmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 28 Apr 2022 04:11:32 -0400 (EDT) Date: Thu, 28 Apr 2022 10:11:30 +0200 From: Maxime Ripard To: Paul Kocialkowski Cc: Jernej =?utf-8?Q?=C5=A0krabec?= , linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, Yong Deng , Mauro Carvalho Chehab , Chen-Yu Tsai , Samuel Holland , Laurent Pinchart , Thomas Petazzoni Subject: Re: [PATCH v4 43/45] media: sun6i-csi: Detect the availability of the ISP Message-ID: <20220428081130.6deusqgnrsgqdp3e@houat> References: <20220415152811.636419-1-paul.kocialkowski@bootlin.com> <20220415152811.636419-44-paul.kocialkowski@bootlin.com> <2029179.KlZ2vcFHjT@jernej-laptop> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="vi7rcbrvgeo53dt4" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --vi7rcbrvgeo53dt4 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 28, 2022 at 09:55:56AM +0200, Paul Kocialkowski wrote: > Hi Jernej, >=20 > Thanks a lot for all your reviews! >=20 > On Wed 27 Apr 22, 22:07, Jernej =C5=A0krabec wrote: > > Dne petek, 15. april 2022 ob 17:28:09 CEST je Paul Kocialkowski napisal= (a): > > > Add a helper to detect whether the ISP is available and connected > > > and store the indication in a driver-wide variable. > > >=20 > > > Signed-off-by: Paul Kocialkowski > > > --- > > > .../platform/sunxi/sun6i-csi/sun6i_csi.c | 33 +++++++++++++++++= ++ > > > .../platform/sunxi/sun6i-csi/sun6i_csi.h | 3 ++ > > > 2 files changed, 36 insertions(+) > > >=20 > > > diff --git a/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c > > > b/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c index > > > a88deb8ba1e7..f185cbd113c7 100644 > > > --- a/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c > > > +++ b/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c > > > @@ -25,6 +25,35 @@ > > > #include "sun6i_csi_capture.h" > > > #include "sun6i_csi_reg.h" > > >=20 > > > +/* ISP */ > > > + > > > +static bool sun6i_csi_isp_detect(struct sun6i_csi_device *csi_dev) > > > +{ > > > + struct device *dev =3D csi_dev->dev; > > > + struct fwnode_handle *handle =3D NULL; > > > + > > > + /* ISP is not available if disabled in kernel config. */ > > > + if (!IS_ENABLED(CONFIG_VIDEO_SUN6I_ISP)) > >=20 > > Where is this symbol defined? >=20 > That is defined through Kconfig's auto-generated header, from the associa= ted > option for the ISP driver. It is defined in the ISP support series so this > will effectively always be false for now. Can the ISP be compiled as a module, but the CSI driver built-in? If so, that would create a dependency from the kernel image to a module, which won't compile. Maxime --vi7rcbrvgeo53dt4 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCYmpMMgAKCRDj7w1vZxhR xR9JAQCzUJ3nSywMzMfmZf2THjuGSWtHrnB1gUI5bzeoJHD/bgD9E0zo+xuSxJ1g MWMoFbBta8oAjxNxO6BGTkd2mhGgTg4= =MHSM -----END PGP SIGNATURE----- --vi7rcbrvgeo53dt4--