Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp2467303rdb; Wed, 15 Nov 2023 01:17:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IEKlMdM+amUEtJN7St/PfZtWEiZQCmBXLmd2Q4qCZdhl0KeVOTtzu59GqfPAE0rCGxmIJtx X-Received: by 2002:a54:4804:0:b0:3ad:9540:5475 with SMTP id j4-20020a544804000000b003ad95405475mr14850588oij.45.1700039820772; Wed, 15 Nov 2023 01:17:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700039820; cv=none; d=google.com; s=arc-20160816; b=rwqvoZMpu2hmBXwU83hK2PgqPGZ0aoRz7ttyLJ5/eo42DVSN34jf4NO1/EbTTOeg3A f2taWo4g+kkVndRCJdcSXHMYsanvfaqvmNbHJldDxI40AgQ0EU8B/om56hJfftzgCqSc gllQ65DaH2zVW8Qua8j8CLSmbOY0WwCHNNfq3sGNseOte8d11BO/YvWThq1YZg9juZxj P/5iTd/knYNYC/ayFvpLJN6SU99Q1ZyW2ULlxovpxPkT7X6y7nydhMR/HGdzO25lJW5g WAGYBcbZCE8uJTjIvmGuT3HBF2/bWV7VDNqMotjqMmyhhZu0LXiiCT8E4ItSjzpSCHte uZWQ== 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; bh=fEBGlNa6ETX9qVEVywc0Dk28Tg8zkpZzVQlUPuAs6YA=; fh=XkrQ7SUeLi0b0PhikYM8m8s4GrXE6G9Yd4TPnmu4pUk=; b=WRRfrF/lhhhdlAokbKEBqtDn2syoNWmdLRG/MmzjHweD6FtVi79iq3/ixpl6yz6sWr HdvOka6P5/ip2H3N8awwJ+oF87e4AmsQKnpZyX+bb4O4onXHuQoib0g57kmPhLygJWvs onj+TVgl/ZmOI6hTXVbZNFfIMA47AhmCq5WlJMbzp5Pfb/KBY7KVT821eZWzq3A772CB sxrPQw8qO7DVxt9mc5rQF++04Cf/EQ1olXs3SWZzLvGAIcW5mYRZRHJtcdbztr/RvRY8 rLSCriUSJYsIjfcBd9POZ6kH85hck0+o2RE7WRnErEuxgsRnIh3nH4Hk5Ar8yiF38hNr SPJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=gkv7Pl+b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id bo6-20020a056a02038600b005c1739564f7si8489764pgb.351.2023.11.15.01.17.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 01:17:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=gkv7Pl+b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 2601E8028A4B; Wed, 15 Nov 2023 01:16:54 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234730AbjKOJQc (ORCPT + 99 others); Wed, 15 Nov 2023 04:16:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234720AbjKOJQb (ORCPT ); Wed, 15 Nov 2023 04:16:31 -0500 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::221]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F2A711C; Wed, 15 Nov 2023 01:16:23 -0800 (PST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 1688524000C; Wed, 15 Nov 2023 09:16:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1700039782; 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=fEBGlNa6ETX9qVEVywc0Dk28Tg8zkpZzVQlUPuAs6YA=; b=gkv7Pl+bIME6lgpeIGjLvmlGp04L3bUcTbk094pWAX166nXAAXV0ImUKdI1WHscKuhwpV3 MERBo6HmYIkos69YcUQEJnkmC7paZ+TYedjZgtHgP+qPEeoFv7GFTDd4Q5aft/jLs4R1pR KLXPAO2mSsDrHVSSbIdhVu3A0HjgEuTx441A5evLC3MAHs//ZAAYVrOdzMx/wOD0LFSf5s KEWjVK//XX5iMeegY29KYX9dzQe3/2tJpjhV0Aq5fKHmqBl0g2CXkiXo2pllbBvARZuPk8 Ykaic8DVN4kG3kl4inyELuQsbLjGcuBU6ZkyUZx0ne5d/jShTVhbQFIMXaA7pA== Date: Wed, 15 Nov 2023 10:16:20 +0100 From: Mehdi Djait To: Michael Riesch Cc: mchehab@kernel.org, heiko@sntech.de, hverkuil-cisco@xs4all.nl, krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org, conor+dt@kernel.org, linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, alexandre.belloni@bootlin.com, maxime.chevallier@bootlin.com, paul.kocialkowski@bootlin.com Subject: Re: [PATCH v10 2/3] media: rockchip: Add a driver for Rockchip's camera interface Message-ID: References: <4f9bc04b-81af-49ee-9818-d4cd281504e7@wolfvision.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-GND-Sasl: mehdi.djait@bootlin.com X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 15 Nov 2023 01:16:54 -0800 (PST) On Mon, Nov 13, 2023 at 05:05:12PM +0100, Michael Riesch wrote: > Hi Mehdi, > > On 11/13/23 16:28, Mehdi Djait wrote: > > Hi Michael, > > > > On Fri, Nov 10, 2023 at 03:33:34PM +0100, Michael Riesch wrote: > >> Hi Mehdi, > >> > >> Sorry, forgot one thing: > >> > >> On 11/8/23 17:38, Mehdi Djait wrote: > >>> +static int cif_subdev_notifier(struct cif_device *cif_dev) > >>> +{ > >>> + struct v4l2_async_notifier *ntf = &cif_dev->notifier; > >>> + struct device *dev = cif_dev->dev; > >>> + struct v4l2_async_connection *asd; > >>> + struct v4l2_fwnode_endpoint vep = { > >>> + .bus_type = V4L2_MBUS_PARALLEL, > >> > >> This is surprising. I had to set this to V4L2_MBUS_UNKNOWN, otherwise > >> v4l2_fwnode_endpoint_parse would yield -ENXIO, which indicates a bus > >> type mismatch. Does this really work for your (BT.656, right?) setup? > >> > > > > Yes it works. > > > >> I think we should get the bus type from the device tree, right? > >> > > > > I am looking into this. > > > >> Thanks and best regards, > >> Michael > >> > > > > I assume you have a "bus-type = ;" in the device > > tree definition of your endpoint ? This caused the mismatch as the > > v4l2_fwnode_endpoint is set to PARALLEL > > Yes that's correct. > > The documentation is quite sparse here, but I would guess that the PX30 > VIP accepts parallel data without embedded syncs (= > MEDIA_BUS_TYPE_PARALLEL) as well as parallel data with embedded syncs (= > MEDIA_BUS_TYPE_BT656). If this is actually the case, I think we should > put V4L2_MBUS_UNKNOWN and let the device tree decide. Yes, I will do this. > > We can be sure, however, that the PX30 VIP supports BT.656, so I guess > the safe approach would be to use .bus_type = V4L2_MBUS_BT656. > > What do you think? I agree -- Kind Regards Mehdi Djait > > Best regards, > Michael