Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5822304rwb; Tue, 1 Aug 2023 08:20:33 -0700 (PDT) X-Google-Smtp-Source: APBJJlFVPSc/A8BfuQ9ndsCNVAV7AqFlpFMUeSAyLo3BwAW6v2ETp3pdkqw7TaH1+teqYOB3Qgb8 X-Received: by 2002:a05:6a20:8f06:b0:13e:7a0a:36d8 with SMTP id b6-20020a056a208f0600b0013e7a0a36d8mr2761669pzk.9.1690903232927; Tue, 01 Aug 2023 08:20:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690903232; cv=none; d=google.com; s=arc-20160816; b=DiD4oiOLHE/xb9cPXckgV0usQjyBFB7CCFsA99l4R+DDKAfj/A/EJF1MF7LLpgNUr+ Lpzwi4s96437PIaBfZ9j4Hp3fPRZjtuGOX8/111Lu8qta+phv4hUjGd68bruK8hIHF8V +4TNFO7JyeRaFieiU/1lTF9UkwZJzVqHuf+VZtJ97zoSt7PAQSIsXAPv6TMfb3KW6eEh mU7BC7ZxyfX+Z4qHnEMCnDMpjxsKCWbp4j+1M1Nck8V+R7WrNkHC43ePxvgDVCaAA+Us nz+TprbEeKnFo4zvz9vNmevxOaWC721303Z8IyiYoVHJRxJ2Mshnb7WYgPP7QzdA6x8I y4Vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=OYwdbgfwfaTyt9xrn48O5jf+0MiYCuWRuDC5EVAr3Vs=; fh=LroA/i1EM0DOjWSTFbQc0E4XLyK+5NHY20upRsJ5XaQ=; b=OqawzSPa0yDSSAHmTkbDVnFWKpaxGdZEErjKFYNB/MS+c5t9rllE8CisT+Zszm8Oa9 blfRtdghDOc1Co+FtTew+ERP4LIqDbFq5P1FA/GFsAhKw+EVRUlZIjpv+Aj5RG+FQrNO 5gO2Wxf8aw+goXBRAnZeK0vAy3Z7O8QUAJN/bKjbR3M7OcBOAV6UvrfCRSzUDBh9ylvG 7sVaFdj2yQvNNCQCTk8SbV3fvea2erKiaQzEg7boSWvAQuufP89XvvnUtSMg2NKB1j0B NJP1kGcJJdLXTzOiXYFbDtRrRNBxykzVp/TKQET4SU7rC4IL0YCRmoUjfQlBMGPRY/Aq WUcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=t25R7aL4; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l125-20020a632583000000b0055c1760dd8esi9317982pgl.380.2023.08.01.08.20.19; Tue, 01 Aug 2023 08:20:32 -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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=t25R7aL4; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234474AbjHAOSU (ORCPT + 99 others); Tue, 1 Aug 2023 10:18:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234601AbjHAOSI (ORCPT ); Tue, 1 Aug 2023 10:18:08 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2392DC; Tue, 1 Aug 2023 07:18:07 -0700 (PDT) Received: from [192.168.88.20] (91-154-35-171.elisa-laajakaista.fi [91.154.35.171]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id B0C9B8DA; Tue, 1 Aug 2023 16:17:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1690899423; bh=sQG3vwXJXjbg01e7uLSpcCe0tx3QQknd3b3XmbiopR4=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=t25R7aL4Kg+bsOWlL9diXbKSuX2T1nNxUuHOizgjXra8wstiHtFCrUBdjSOhmOrfq YYR+IHX+8+j4lb95PZa/a7YM/jSkH7xnMW3XblpFIJUUIK7ACh9Z0fVvtrhbyQqnXW UO/XENIsUJVpvxRKNIDwV+fmd8MVrzlzLf66nFn8= Message-ID: <3592f52b-42fc-6f50-07c5-df0ce4d74cd4@ideasonboard.com> Date: Tue, 1 Aug 2023 17:18:02 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v8 12/16] media: cadence: csi2rx: Populate subdev devnode Content-Language: en-US To: Jai Luthra , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sakari Ailus , Laurent Pinchart Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Mauro Carvalho Chehab , Maxime Ripard , niklas.soderlund+renesas@ragnatech.se, Benoit Parrot , Vaishnav Achath , Vignesh Raghavendra , nm@ti.com, devarsht@ti.com References: <20230731-upstream_csi-v8-0-fb7d3661c2c9@ti.com> <20230731-upstream_csi-v8-12-fb7d3661c2c9@ti.com> From: Tomi Valkeinen In-Reply-To: <20230731-upstream_csi-v8-12-fb7d3661c2c9@ti.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 On 31/07/2023 11:29, Jai Luthra wrote: > From: Pratyush Yadav > > The devnode can be used by media-ctl and other userspace tools to > perform configurations on the subdev. Without it, media-ctl returns > ENOENT when setting format on the sensor subdev. > > Signed-off-by: Pratyush Yadav > Signed-off-by: Jai Luthra > Reviewed-by: Laurent Pinchart > --- > v7->v8: No change > > drivers/media/platform/cadence/cdns-csi2rx.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/media/platform/cadence/cdns-csi2rx.c b/drivers/media/platform/cadence/cdns-csi2rx.c > index cde7fd6463e1..d82a8938932f 100644 > --- a/drivers/media/platform/cadence/cdns-csi2rx.c > +++ b/drivers/media/platform/cadence/cdns-csi2rx.c > @@ -678,6 +678,7 @@ static int csi2rx_probe(struct platform_device *pdev) > csi2rx->pads[CSI2RX_PAD_SINK].flags = MEDIA_PAD_FL_SINK; > for (i = CSI2RX_PAD_SOURCE_STREAM0; i < CSI2RX_PAD_MAX; i++) > csi2rx->pads[i].flags = MEDIA_PAD_FL_SOURCE; > + csi2rx->subdev.flags |= V4L2_SUBDEV_FL_HAS_DEVNODE; > > ret = media_entity_pads_init(&csi2rx->subdev.entity, CSI2RX_PAD_MAX, > csi2rx->pads); > Reviewed-by: Tomi Valkeinen Tomi