From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 12BA6C433F5 for ; Thu, 28 Apr 2022 11:45:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=DJu0MoUNLPRrizdrPtEhb3RkpihtzwYSYs4+vT913zQ=; b=fPIkqFdwHuxZzEEd7gVskQNxiN Gq/xFRvuEwYdwh3+Z+TEWcrKSZkMqxbJETJgzKGuH6jpS+Op3A2aS3tzzhyATbVwkR9tdQRuGBIJf 2mv3pNl+jjJAzC+jBS8rcqy9OQ+HvCv451tTB8oeKYpE04wBn1b0z78N+RSInCTvhZjpr4/hdv/yf +2qaq04t1J4zUikQLpv90VNeewsWMWq2EcOBGpoJRvm2vQE/WREdGv+S7DBAspnw9eqwcACuDResR naWUgWzuZ2Oc5BccjbaECaimjLhVbuoBZA7VJO86Vp1KAgTJ6PIxOVC04pqmXWFxWejg1tR/09KDA 0qY0uoNA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nk2Yv-006Zj2-S4; Thu, 28 Apr 2022 11:43:57 +0000 Received: from relay10.mail.gandi.net ([2001:4b98:dc4:8::230]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nk2Ys-006Zi1-EQ for linux-arm-kernel@lists.infradead.org; Thu, 28 Apr 2022 11:43:56 +0000 Received: (Authenticated sender: paul.kocialkowski@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 83352240007; Thu, 28 Apr 2022 11:43:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1651146230; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Tn250kJelEl8haaXg6wMumzcA9FUTRhEqD5DE4h8/UI=; b=ouqPRGU9fc/m5/qzE9D5GZZ+PasktKbQBiBThrC2hu/67fsNMBnx4U4GN1Ht2r4TKpaM4a gZcO4ryXKxyKiCfhmkgn7WZkabT+Gjd/t/awZyJ93HMWUEII3joXwdoHkAbTAwAc9Zw3yx 2UmejKxDIxEjbd4xaDemNNjoVb1KJ7FiuIYRobZcRcLqcbuuDa36OFVTTq1vIEeY8DFGKD 6DPty7i90P5XZL4sVWSnIq7cOGvc095fRFDKPvCTTWYEEDZgexg5vWnqXv8akbEJeav/h5 H9/K0qitg2ER4ZGevjGuidhOKm5/twv9RxlBFhOwdJyDusT1h6SMPlpJI8rOXg== Date: Thu, 28 Apr 2022 13:43:44 +0200 From: Paul Kocialkowski To: Maxime Ripard 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: References: <20220415152811.636419-1-paul.kocialkowski@bootlin.com> <20220415152811.636419-44-paul.kocialkowski@bootlin.com> <2029179.KlZ2vcFHjT@jernej-laptop> <20220428081130.6deusqgnrsgqdp3e@houat> MIME-Version: 1.0 In-Reply-To: <20220428081130.6deusqgnrsgqdp3e@houat> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220428_044354_839135_335A64BD X-CRM114-Status: GOOD ( 30.25 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============7923111424299169422==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============7923111424299169422== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="st8DMu9oF2iUfIiW" Content-Disposition: inline --st8DMu9oF2iUfIiW Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Maxime, On Thu 28 Apr 22, 10:11, Maxime Ripard wrote: > 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 napis= al(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 assoc= iated > > option for the ISP driver. It is defined in the ISP support series so t= his > > will effectively always be false for now. >=20 > Can the ISP be compiled as a module, but the CSI driver built-in? I think so yes, I don't see any reason why not. > If so, > that would create a dependency from the kernel image to a module, which > won't compile. I think this would introduce a run-time dependency (sun6i-csi needing sun6i= -isp in order to register) but I don't understand why it wouldn't compile though. Could you ellaborate a bit? Thanks! Paul --=20 Paul Kocialkowski, Bootlin Embedded Linux and kernel engineering https://bootlin.com --st8DMu9oF2iUfIiW Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEJZpWjZeIetVBefti3cLmz3+fv9EFAmJqffAACgkQ3cLmz3+f v9Emewf/Zlj04aHtR4cNVwZx04Pnb577X42nR1Wu/aUvkR8yxcNEDJFRoO7VuElK rACulRMpS4pMBqYPXtieuMirT1VTB0mBD0soOiC7/s9vRzsThpk01c3mY2c0IBZn sxWqTGkrqI/jDF4uKt60YL8KECEuGulSPkMAdJtjXWp+V8fJqPbzDOpGlILkNY++ 2fdyfhcI1Sy60qcdkwAgBNndnGc8Ce894PM5xZikiwwsbAf6XpTZ2QZOHUYTRpdr 7nTk0ibe2TQJmGwnKp2Elzwl+o6oZn+qu8m6FnXnxwB08snRh7qUifMsNu6GqUVB 0J4jx12tfFVhRwePRq1a9sM0Xb5h4Q== =MHAf -----END PGP SIGNATURE----- --st8DMu9oF2iUfIiW-- --===============7923111424299169422== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============7923111424299169422==--