From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BB84C2111B; Mon, 13 Nov 2023 15:28:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="ItggKojN" Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::224]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 949E8D63; Mon, 13 Nov 2023 07:28:39 -0800 (PST) Received: by mail.gandi.net (Postfix) with ESMTPSA id AE965E000C; Mon, 13 Nov 2023 15:28:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1699889316; 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=aIIRnOM8lZdjayyVbJdSL02qsiaukPJ406eFMm5UKFA=; b=ItggKojN8r1Km5DPV7lScttvphF0TWoJVrHORGuEhlDw0Qg2DhcCPPboAYQdqYRuFQ/Xw2 0PhAjNVYoNzxQ9i1lKs9karTKqIcjjA3/h3x/MzgNeL8Vb4YIVbgT94jeqI5yq8a69M9Dk sYK97Fy2bRwN5bgEoiSNDH2DkRccGIH3zX2pDveFTKsdCxpV3qOf2jiTBe/0RZk8clc2WD 1dvU6j/PRsxadugl5WJY/da4I0NSq53+tNNL4kkdp6rkmMJ8Z9n0CGGGUAQlbqyKtP9LaK iiiMTYfUiZ2lMgj7y7naY4kIF1B56H6u1tJwKx8HBsq9saQ+l8qPht6SVUAg6Q== Date: Mon, 13 Nov 2023 16:28:34 +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> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4f9bc04b-81af-49ee-9818-d4cd281504e7@wolfvision.net> X-GND-Sasl: mehdi.djait@bootlin.com 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 -- Kind Regards Mehdi Djait