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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 87762C6FD1D for ; Mon, 20 Mar 2023 09:38:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231398AbjCTJiV (ORCPT ); Mon, 20 Mar 2023 05:38:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231263AbjCTJhx (ORCPT ); Mon, 20 Mar 2023 05:37:53 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBEA823D8C; Mon, 20 Mar 2023 02:37:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679305061; x=1710841061; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=tgSBiNMlvox8p9HFIVHyf8lm+Mh/0Js79g7+/dJk32s=; b=ISdDfwmNhP/JzbCvk5ah5iycy57uSdrH86AXlia4PYtzkfuyNz8aGErC bPdk9BmqN++0bs7f4s4OlXVaafQBeIipbbzCxUdd95LR8QOK6La95F9zO pOqGiPc4+XB3ll1yVEUyAlF2xu8sWzcPml3noOt4LdCNyn0i9Lv5T15GU LHf03qIM4JdCQBTKSePXJZb5l7MamdsK36oFffJHOit88L0meWCe4+sy9 rIlGAAE00/J43tdcItCMJPEVPuom0xIMBxcxiFMqJJZhhMaVrwTOx65m1 3/97XWXD7GmJj0PxT7dPXLdl5QymE07jy2Px5vodliBTJr9JwtNajQwOu Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10654"; a="366333512" X-IronPort-AV: E=Sophos;i="5.98,274,1673942400"; d="scan'208";a="366333512" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Mar 2023 02:37:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10654"; a="631064558" X-IronPort-AV: E=Sophos;i="5.98,274,1673942400"; d="scan'208";a="631064558" Received: from turnipsi.fi.intel.com (HELO kekkonen.fi.intel.com) ([10.237.72.44]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Mar 2023 02:37:36 -0700 Received: from kekkonen.localdomain (localhost [IPv6:::1]) by kekkonen.fi.intel.com (Postfix) with SMTP id 6B5C5122400; Mon, 20 Mar 2023 11:37:33 +0200 (EET) Date: Mon, 20 Mar 2023 11:37:33 +0200 From: Sakari Ailus To: Laurent Pinchart Cc: Jacopo Mondi , Francesco Dolcini , Sakari Ailus , Marcel Ziswiler , linux-media@vger.kernel.org, Philipp Zabel , kernel@pengutronix.de, Francesco Dolcini , Aishwarya Kothari , Marcel Ziswiler , Mauro Carvalho Chehab , Steve Longerbeam , linux-kernel@vger.kernel.org, Marco Felsch Subject: Re: [PATCH v2] media: i2c: ov5640: Implement get_mbus_config Message-ID: References: <20230306063649.7387-1-marcel@ziswiler.com> <20230320084844.tdjiv6kaxcosiwm2@uno.localdomain> <20230320092602.GE20234@pendragon.ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230320092602.GE20234@pendragon.ideasonboard.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Laurent, On Mon, Mar 20, 2023 at 11:26:02AM +0200, Laurent Pinchart wrote: > In a (simplified) nutshell, > > ---------+ +----------+ +---------+ +-----+ +-----+ > | Camera | --> | CSI-2 RX | --> | CSI2IPU | --> | Mux | --> | IPU | > | Sensor | | | | Gasket | | | | | > ---------+ +----------+ +---------+ +-----+ +-----+ Thank you, this is helpful. I suppose the mux here at least won't actively do anything to the data. So presumably its endpoint won't contain the active configuration, but its superset. > > All those blocks, except for the gasket, have a node in DT. > > The IPU driver needs to know the number of CSI-2 data lanes, which is > encoded in the data-lanes DT property present in both the sensor output > endpoint and the CSI-2 RX input endpoint, but not the other endpoints in > the pipeline. This doesn't yet explain why the sensor would need to implement get_mbus_config if its bus configuration remains constant. I suppose those blocks in between would probably need something to convey their active configuration from upstream sub-devices. -- Kind regards, Sakari Ailus