Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp602295rwb; Thu, 8 Dec 2022 00:02:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf5/PlgRhom4sSJZb3w3OnWeu7xW6iFuLxLOGSuU2ACvDY0tzH2pIV2LKfaYrTpsA/kZSSys X-Received: by 2002:a63:5263:0:b0:439:8dd3:c3c2 with SMTP id s35-20020a635263000000b004398dd3c3c2mr65947844pgl.481.1670486529795; Thu, 08 Dec 2022 00:02:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670486529; cv=none; d=google.com; s=arc-20160816; b=KuXz/OXjoXgXFeeCVOr66P0MW0cCJowgBPgPjHI90BBjJwOTvK38PpYI8UCLUu94+y kpTjL9PhoXPlx+t3xmkTKYeb5t5VrfL9kFZK3fI4rMAfz8BNRzB1hfQPmd7DZJNPCbxA W9ft8zLWDL60N+i4087FoRDJFNS1WZ9ub+3pQqRYbEQditGTIF/+iaigm4mQVQ0aXFuJ NSjcofYMzZ05BMO6ZWvNw9JSvQu2JulQTzg/2OYgX1PdNLTOGuoqefkNJNkuBiWe/ax2 6UmKMFN+p2P4XV94tR0n8K7//1ztmOpzKTdbF6LNC6hl6iURiw2MVNnvMprupE/N6xAL 3z0Q== 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=2+QqCNpUSWPVLvnEj6jNEYOWxswqafZUFeykFm0suLI=; b=K9QgNddTCHSc+EE8vBWZ2+J4F4hhvySWIyAYwmKqji5ihkkHexDmagcLQIR1lViR9p +eAH5Ik6or0phxqYZFicxsngGAeIv4JRPfcat6K35UAyQQRJmISYWG5/5gq8JJWonKIa Zuju94SJ9LDakcWvT5CegGJ18cPyY/M+8NNARpHhRmC5e8IJr82UWZrR/zlg2MhudLeq LoVFhnuYWZ7VmIt7DD2ZY7qesZmtVVGwD2RMjPGeeEfUcP6sXBocXM7n+7CpY3zhts9W XH9BLKj+pD7OgNi5N/Gugrg07JOIKxVaZo6Jq02oLqeVKdbe29z2DiNLyiF5TtbrqOx7 0Qkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=fitqq8LH; 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 q6-20020a170902a3c600b00186a076362csi5843896plb.315.2022.12.08.00.01.59; Thu, 08 Dec 2022 00:02:09 -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=fitqq8LH; 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 S229564AbiLHH4a (ORCPT + 75 others); Thu, 8 Dec 2022 02:56:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbiLHH43 (ORCPT ); Thu, 8 Dec 2022 02:56:29 -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 276772228C; Wed, 7 Dec 2022 23:56:28 -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 2889E25B; Thu, 8 Dec 2022 08:56:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1670486185; bh=BcjJ1h797aI+fqI1juhLazjJ1X7XpWhj4GlVjAbTGJs=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=fitqq8LHhlDI0Ku8bMPEjvMGzQCncvxbOdrt0PAhttaQQenhoH4DhHZd8ZT/S/wu3 uw+lTCnyCDVXrTJgnkt/pEfTJwCMHYBogX0VnbWECi2yzoF0855mpcMbNJ0gOCoLdm 5WJpmNJD7+T4KnBUCfBW0dYmOsCeIrAUC4aNDQuE= Message-ID: <11b87742-bb92-7f8f-8939-2e403d2652e5@ideasonboard.com> Date: Thu, 8 Dec 2022 09:56:21 +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 v4 2/8] i2c: add I2C Address Translator (ATR) support To: Luca Ceresoli Cc: Andy Shevchenko , devicetree@vger.kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, Hans Verkuil , Jacopo Mondi , Kieran Bingham , Laurent Pinchart , Luca Ceresoli , Mark Rutland , Matti Vaittinen , Mauro Carvalho Chehab , Peter Rosin , Rob Herring , Sakari Ailus , Vladimir Zapolskiy , Wolfram Sang , satish.nagireddy@getcruise.com References: <20221101132032.1542416-1-tomi.valkeinen@ideasonboard.com> <20221101132032.1542416-3-tomi.valkeinen@ideasonboard.com> <20221107124055.0495031f@booty> Content-Language: en-US From: Tomi Valkeinen In-Reply-To: <20221107124055.0495031f@booty> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.4 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 07/11/2022 13:40, Luca Ceresoli wrote: > On Fri, 4 Nov 2022 13:59:06 +0200 > Tomi Valkeinen wrote: > >> Hi Andy, >> >> On 01/11/2022 16:30, Andy Shevchenko wrote: >>> On Tue, Nov 01, 2022 at 03:20:26PM +0200, Tomi Valkeinen wrote: >>>> From: Luca Ceresoli >>>> >>>> An ATR is a device that looks similar to an i2c-mux: it has an I2C >>>> slave "upstream" port and N master "downstream" ports, and forwards >>>> transactions from upstream to the appropriate downstream port. But is >>>> is different in that the forwarded transaction has a different slave >>>> address. The address used on the upstream bus is called the "alias" >>>> and is (potentially) different from the physical slave address of the >>>> downstream chip. >>>> >>>> Add a helper file (just like i2c-mux.c for a mux or switch) to allow >>>> implementing ATR features in a device driver. The helper takes care or >>>> adapter creation/destruction and translates addresses at each transaction. > > First of all, thank you for bringing this work on! > >>> ... >>> >>>> +I2C ADDRESS TRANSLATOR (ATR) >>>> +M: Luca Ceresoli >>> >>> Hmm... Are you going to maintain this? Or Review? Why not? >> >> We haven't discussed with Luca if he wants to maintain this (this is >> mostly his code). But, indeed, I should add my name there. > > I think at this point you are probably in a better position to be the > maintainer, but I'm OK with being listed here as reviewer (R:). > > Ah, would you please use my bootlin dot com address here? Ok, I've added your bootlin address as R: Tomi