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 DE007C43334 for ; Sun, 19 Jun 2022 00:30:14 +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: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=kTx9+DI7n8+aAmeu+F1dz2I4fSVSbgvVx1rXXLxygO4=; b=xOiR8u6eySD6Un 9dn1D/P36JoT3t/QVmHyP2XYqAYz3IXJzIvv5TxuSPP/Nbkzmq1xSawqvqc6ddqa0x2mLeY05u2bk p8VefZD9NvHo8acrO5BLRa6Q33d69Mt+w6TO++tkfJRJ6impXxsUrAuHTNL2SgeT2oPqhNh1t0Qbd mn473KD07eyRJxrJpjF0erJGx9vSCD8abe6aPQIu7X9ly4stJ/wNdAnHLTjoHvpEFXYZ7ppLffTLh 3jFql6u013ONZcOF1OjilFOcWkCZutznCGV3nJ2rVfVDhuLqyFp8MHM7rCzIZgvwZhTAXwMVVjOCT D7uGdarqOl5r8h54A1CA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o2ioI-00CjN8-4c; Sun, 19 Jun 2022 00:29:02 +0000 Received: from phobos.denx.de ([2a01:238:438b:c500:173d:9f52:ddab:ee01]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o2ioE-00CjMK-SS for linux-arm-kernel@lists.infradead.org; Sun, 19 Jun 2022 00:29:00 +0000 Received: from [127.0.0.1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id E05C584011; Sun, 19 Jun 2022 02:28:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1655598536; bh=L688duDzXEa9xnbGTBtYRkLTDrVbLjKIzgi9IUpo/50=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=gGDtv0wrkJpCBoI1CxxeJOjlRL/KLImh+O5LD/I1UuOBktvyHSElbefENKoWF+amw SMAHvbSQ2EkwpqDZrb5lq0lYWe8JFHfLlx7Zb7CQ/w+Ybg97b96JUQIyU682DNMAZ9 asqNrvIwUb57JhPc00On6b3IAzCXGFRLdIYoxfQy1g3IPDrXvYPc8dfehniGSi05RC aOeoZ8hX+/Y/Zsn91jA+hwASwnkCl9Sbn9YOddsdFOI63zNnHm2j/ESlN/G8DZduOp YrrN+M977z1C6My9KYhNnXOAp2OcuGJtwSnq7CwyLuzHdPof164vIQG7K/bpCGkEY8 8BnXxMfg6dSyA== Message-ID: <4dc7b39c-35cd-663a-98f8-6034693df3c8@denx.de> Date: Sun, 19 Jun 2022 02:28:55 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH] media: stm32: dcmi: Register V4L2 subdev nodes Content-Language: en-US To: Laurent Pinchart Cc: linux-media@vger.kernel.org, Alain Volmat , Alexandre Torgue , Amelie DELAUNAY , Hugues FRUCHET , Philippe CORNU , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org References: <20220618222335.478205-1-marex@denx.de> From: Marek Vasut In-Reply-To: X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220618_172859_202920_B4CBE563 X-CRM114-Status: GOOD ( 13.33 ) 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-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 6/19/22 01:20, Laurent Pinchart wrote: > Hi Marek, > > Thank you for the patch. > > On Sun, Jun 19, 2022 at 12:23:35AM +0200, Marek Vasut wrote: >> Unless the V4L2 device calls v4l2_device_register_subdev_nodes(), >> the /dev/v4l-subdev* sub-device nodes are not registered and thus >> not created. Add the missing call. > > This driver configures the subdevs internally. Exposing the subdev nodes > to userspace would conflict with driver operation. > > If you need the subdev nodes only to query subdev information, you can > use v4l2_device_register_ro_subdev_nodes(). Ideally I'd prefer this > driver to expose subdev nodes to userspace and stop propagating formats > internally, but that may break applications :-( I need those subdevs to configure e.g. test pattern on the sensor side. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel