Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp2278071rwl; Mon, 26 Dec 2022 11:51:51 -0800 (PST) X-Google-Smtp-Source: AMrXdXu7wioCKvzlGzs6bcBCRion3tSXRUu1XOLKzqA6cpilpauYGh1E0POIHEl0D5bPzBhBhnLd X-Received: by 2002:a17:90a:cb83:b0:225:bece:c251 with SMTP id a3-20020a17090acb8300b00225becec251mr15368666pju.47.1672084311503; Mon, 26 Dec 2022 11:51:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672084311; cv=none; d=google.com; s=arc-20160816; b=CuTcNDgDtLNqTPo0atp3RuS3TRZPGiB/DiZOJqDYXGnNLpcXNF465CyXApzMSO6uwm 5IRBnlN+mtVrYvb16kLbtLs0zm6GrgO7WQ1dgehkIBIUs2lrUAiA3/5X0GwARSgT+2vU xL8WztaVM+NIXvndHIEqq0RQp4u7uYHypThtL26lIGwh7RPV2CWWJiNnXXRAd4VepLtl 3p8waR/HT9SoBJXnQdIPSVoRxNftuhGQ5UYw9jmg+NK5UQY+Pn/sf/0X48NLJgEPwGQm scuenTRzxItmYyS8RKDEReeRnMPwXzaGqYFTY/UOEt3eP4s9pYi3ELPuM9gS3pG87myc 6PrQ== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=EVd/bKJLYFOBGZKlVxXkvjHogYw8xCHwfvTQLJsJETE=; b=C9m44pI/yx8n0zJTK7nd5E3YKIP5m1GrsetiGJs+8UjvQ+/RzyQWcT9iuxkZCr23Qr ieuJr6C8MKQ3fnsLNq2bDdEhxM8brl2Oqe3iaVi/B9BLwb+TLTQ+Dm9sKC+Vs/A0WX0E R7y7nsLhm0ah1kUyRExt6NI/ukgUNg73ta/SD4cjBwZV/XZdPVRQbTzGR5ma1TsDRiFW GCZb2p383PYrZdY2lyFukvlKSSRy0P3JbEMEY6YyIoXRTd2Zm++7hyDZxY3y67LKTDdo 0NZGJHygt8iNYZb/S9Z/xfFhHvkasTM007UzmuaEiQj5BiQG01x6GhYwegF8y80eT65Y PwpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=S5NzcHdi; 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 lk13-20020a17090b33cd00b00218792fa2b3si1826801pjb.160.2022.12.26.11.51.43; Mon, 26 Dec 2022 11:51:51 -0800 (PST) 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=S5NzcHdi; 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 S232279AbiLZTZq (ORCPT + 66 others); Mon, 26 Dec 2022 14:25:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229568AbiLZTZn (ORCPT ); Mon, 26 Dec 2022 14:25:43 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA0751E5; Mon, 26 Dec 2022 11:25:41 -0800 (PST) Received: from [192.168.1.15] (91-154-32-225.elisa-laajakaista.fi [91.154.32.225]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 5F2ED904; Mon, 26 Dec 2022 20:25:37 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1672082738; bh=WYeeL1tFF+mdzsb2TM6BHvYLKX8R50jHZODrjsruKHs=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=S5NzcHdiEbMPUSAbbGRYD0sJQJohu7zh7qlHjj4J4nygU8l8lGEqOWMXM9JENVvsH DlRd5+/ID9CoXxxVbq+lFdZT7WLhYmboH976MgMqdeDFrjAA1ySbKtcoO8rTNmXw7b 9Jk79VqgYYnyKVGE8OuDSPHFpVKNjsnDE0An1EEM= Message-ID: <61729020-0977-521a-6137-3bd89f300652@ideasonboard.com> Date: Mon, 26 Dec 2022 21:25:34 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v5 7/8] media: i2c: add DS90UB913 driver To: Laurent Pinchart Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Wolfram Sang , Luca Ceresoli , Andy Shevchenko , Matti Vaittinen , Mauro Carvalho Chehab , Peter Rosin , Liam Girdwood , Mark Brown , Sakari Ailus , Michael Tretter , Shawn Tu , Hans Verkuil , Mike Pagano , =?UTF-8?Q?Krzysztof_Ha=c5=82asa?= , Marek Vasut References: <20221208104006.316606-1-tomi.valkeinen@ideasonboard.com> <20221208104006.316606-8-tomi.valkeinen@ideasonboard.com> <4d349785-ca37-d930-db3c-2581bba9fde0@ideasonboard.com> <7ddd576f-6e8a-7581-178c-2e8575227811@ideasonboard.com> Content-Language: en-US From: Tomi Valkeinen In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_PASS, SPF_PASS 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 26/12/2022 18:56, Laurent Pinchart wrote: > Hi Tomi, > > On Wed, Dec 14, 2022 at 08:36:47AM +0200, Tomi Valkeinen wrote: >> On 14/12/2022 08:29, Tomi Valkeinen wrote: >> >>>> wondering if the struct device of the DS90UB913 could be passed instead >>>> of the port, to avoid passing the port throught >>>> ds90ub9xx_platform_data. >>> >>> Interesting thought. That would limit the number of remote i2c busses to >>> one, though. Not a problem for FPD-Link, but I wonder if that's assuming >>> too much for the future users. Then again, this is an in-kernel API so >>> we could extend it later if needed. So I'll try this out and see if I >>> hit any issues. >> >> Right, so the issue with this one would be that it would prevent a >> single device uses. E.g. a single chip which acts as an ATR (similar to >> i2c-mux chips), i.e. it contains both the main and the remote i2c busses. > > I don't think I understand this, sorry. What you are suggesting above means that we'd have a separate device for each port of the ATR. Which is fine in our current case, as the i2c master busses are behind separate remote devices. But if you consider a case similar to i2c-mux, where we have a single chip with the slave bus and, say, 4 master busses. We would probably have only a single device for that. Tomi