Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp6901900rwb; Wed, 18 Jan 2023 10:46:04 -0800 (PST) X-Google-Smtp-Source: AMrXdXujT/a9vIeikqsRqLbmBiF1IT64XuDdIveOxIaKiBpht6dcIbFQtfRjWIRpDnMyh6ztZAhN X-Received: by 2002:a17:902:eb44:b0:193:2bed:3325 with SMTP id i4-20020a170902eb4400b001932bed3325mr6833794pli.15.1674067563888; Wed, 18 Jan 2023 10:46:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674067563; cv=none; d=google.com; s=arc-20160816; b=W3ZMptC2x0VAY90XWnPz3+JRVjyJvSbBxr3HjRlWxQ36oZfp48gAjqvLrT0nK/xXA9 NaEdtqttkNtn8KvWP8y7aMD/IB9nqIibGHhgtPx6kyXKwW2BIA17JWP1eRG/5icDec0f yo0kXaRaGwbWt/mcradJlxuJhPXejmt6LHzXTudcBCucz5Cxvwqtx3GFml+ZOvqm8vN7 IW4t1GAYGIdVhUkBHfN4y8LnRULMo8xU7C4YgtlQdXMK9h8FZr7UVibmc0eucZUnRRQI UO1C9fRq6PUricBXhup9FE2lI3PDfD+4fQGRDx1hvi2ZUaSOEFZ81maVRV1mlJKap/AH O7zA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=7feTmKksml+p460UQa0vL2pu2yZh5yuzM2WqrXVgu8w=; b=DO/2soBoZ26bbg9l96J8I7X3mnjwgbdlgrSc42x88utNtv3yRaRuvbE528/W5SyPS2 7Ivvck7mtx/yTLe+fDNxm4l2tmjeVkqasLkH3/8i14GpphOQQ+Mn/QGqI3qubIOFZ/Nn 3/6igbP1vn4RJuMwaJ9+nChtM3o/qnmI03ljW5KINrP5QxE83L84+tIDo42H4zywikFB nosJW8Se8gew0X3vVZ1oNOm958OERXnMPTW1wMsagvcuB4tO6zZbmilU7Mvgu6XdrZJZ LcIZQe0vtYs3D8cx/QWbiy4VpqmE4VnF/m1hVkGTUp8C42r4ysx+l5LtaGx4vPk7auCM VjWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EDTwHBYk; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u18-20020a170903109200b001947aaa2d8fsi10675866pld.2.2023.01.18.10.45.58; Wed, 18 Jan 2023 10:46:03 -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 header.i=@intel.com header.s=Intel header.b=EDTwHBYk; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229998AbjARRpS (ORCPT + 45 others); Wed, 18 Jan 2023 12:45:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231295AbjARRos (ORCPT ); Wed, 18 Jan 2023 12:44:48 -0500 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1522844BD8; Wed, 18 Jan 2023 09:43:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1674063813; x=1705599813; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=nSD1CrtMl3VnpY5BRty9Cid/KcF3iWB6zYqGYpxL7S4=; b=EDTwHBYksTZYvmE0uNitrnfGlR4QJSwaliwmfLdNqWobmPRi9VAdrpg6 InOUbeM7hIL1bXp93XmTsGWJpROKfs0m/Dk0LimGo4/QLb0dGzNucQXg/ 45Cg0BtqZH6/cBmCQ8RB9TEh+qYEICc3nhcZ8lAYNccQUiau20G1q3MY6 DYh09ItVXyRayXAXEJ+/B9ab+IeVOGzWnXHx8UDcwaiZSuqezwXUxng5T RShY1PAE2GFYvMr8Ic+fSppaBFUImVAsOUB2HAlxr3mUcTCw4m62c6GmT iLYr6SNqFiYVzZ9L1TBiTWjQCqUl7pMOeAkq3QMHZFVqGZ3q4nApg7orx w==; X-IronPort-AV: E=McAfee;i="6500,9779,10594"; a="411286871" X-IronPort-AV: E=Sophos;i="5.97,226,1669104000"; d="scan'208";a="411286871" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jan 2023 09:43:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10594"; a="609738290" X-IronPort-AV: E=Sophos;i="5.97,226,1669104000"; d="scan'208";a="609738290" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga003.jf.intel.com with ESMTP; 18 Jan 2023 09:43:26 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1pICT5-00BInz-2H; Wed, 18 Jan 2023 19:43:23 +0200 Date: Wed, 18 Jan 2023 19:43:23 +0200 From: Andy Shevchenko To: Tomi Valkeinen 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 , Matti Vaittinen , Laurent Pinchart , Mauro Carvalho Chehab , Peter Rosin , Liam Girdwood , Mark Brown , Sakari Ailus , Michael Tretter , Shawn Tu , Hans Verkuil , Mike Pagano , Krzysztof =?utf-8?Q?Ha=C5=82asa?= , Marek Vasut Subject: Re: [PATCH v7 0/7] i2c-atr and FPDLink Message-ID: References: <20230118124031.788940-1-tomi.valkeinen@ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE 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 Wed, Jan 18, 2023 at 07:28:20PM +0200, Tomi Valkeinen wrote: > On 18/01/2023 18:01, Andy Shevchenko wrote: > > On Wed, Jan 18, 2023 at 02:40:24PM +0200, Tomi Valkeinen wrote: > > > Hi, > > > > > > You can find the v6 from: > > > > > > https://lore.kernel.org/all/20230105140307.272052-1-tomi.valkeinen@ideasonboard.com/ > > > > > > Main changes: > > > > > > * i2c-atr: Use bus notifier. This allows us to drop the patch that adds > > > the attach_client/detach_client callbacks. On the downside, it removes > > > the option for error handling if the translation setup fails, and also > > > doesn't provide us the pointer to the i2c_board_info. I belive both > > > are acceptable downsides. > > > > > > * Use fwnode in the fpdlink drivers instead of OF > > > > > > * Addressed all the review comments (I hope) > > > > > > * Lots of cosmetic or minor fixes which I came up while doing the fwnode > > > change > > > > I believe my comments to the first driver applies to the next two, so please > > address them whenever you are agree / it's possible / it makes sense. > > > > About ATR implementation. We have the i2c bus (Linux representation of > > the driver model) and i2c_adapter and i2c_client objects there. Can't we > > have an i2c_client_aliased in similar way and be transparent with users? > Can you clarify what you mean here? > > The i2c_clients are not aware of the i2c-atr. They are normal i2c clients. > The FPD-Link drivers are aware of the ATR, as the FPD-Link hardware contains > the ATR support. Can't that hardware be represented as I2C adapter? In such case the ATR specifics can be hidden from the client (drivers). I'm worrying about code duplication and other things that leak into drivers as ATR callbacks. It might be that I didn't get how hw exactly functioning on this level and why we need those callbacks. -- With Best Regards, Andy Shevchenko