Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp634560ybz; Wed, 15 Apr 2020 15:36:11 -0700 (PDT) X-Google-Smtp-Source: APiQypIqNIgKqIdrpiCF05NwFBYTw7dK9CFXLygaZnB9qNl+wmbVfrDHEDWt0oK76S1xeTz74gY2 X-Received: by 2002:a50:8b01:: with SMTP id l1mr22020356edl.261.1586990171105; Wed, 15 Apr 2020 15:36:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586990171; cv=none; d=google.com; s=arc-20160816; b=ro6Dr6ikvgTLCZAS9nbADyiitwO5VGexdZeaJqyH+U1or0kIULN2KNL0lzaobJklme PT5aqvVBj8DEbS4bUZNyrng412YUwBet2yksL5380BXXjXl63AY/Rs5EyH9WoSpZeMw6 86hooEy826urkgqGCw5oDn77wggVpcWuOLPzhkL+7eYP1MDIijRqSpyB37GuPp1+6sO1 okE2Q4rxnmU5ti8AjmRRMkgnXjzxV3hE7r3+8JZxIKMPrW7DrozaQjeuPWiv9xd4IVA+ WV/eqGA6RQlody4Ztm3+LegwRtRBGJlQMigTCAIUETOzeMpJyjTjkHZY2WDWA3VWsHEB Ki0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:reply-to:references:cc:to:subject :dkim-signature; bh=+ICXIT1z1eIQ+usIlRY0MQfx01qpquuKm/PM88V53hw=; b=X/DmaC6Xx9ZEolST0m0/tZIc5LvzCWrjj6iFoosB6cJ6y2zhoDRJWfZ8tH4udxQW3C alSu02mz0iQl6kvfpLtEZmpEh0RNwh9ObDLbibYA2W+/nXWXOz6Av6b+qEL1oERdM4AF /rpzoXAUVW8td/pCfJzKM3XpGBrrMCZo/kjccKN8jh06F4vM71efURyiEGpryvJ7cRl4 D1uMGIblk3lhjLHgU1EzyMT8514xeD/7BFwA5QpXPwwfWW2Ud5i7ohQl7HdtjxzWdubk ib1MTdWool5olZQoAi/SAfskXHV1ZzuKTbngcEoR8L9Nm/COa5ZKf38LszHc01ZxjScq DMqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=h0LSZW1g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rv23si9698752ejb.330.2020.04.15.15.35.48; Wed, 15 Apr 2020 15:36:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=h0LSZW1g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2408093AbgDOIfQ (ORCPT + 99 others); Wed, 15 Apr 2020 04:35:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725859AbgDOIfN (ORCPT ); Wed, 15 Apr 2020 04:35:13 -0400 X-Greylist: delayed 1631 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 15 Apr 2020 01:35:13 PDT 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 7C1CDC061A0C; Wed, 15 Apr 2020 01:35:13 -0700 (PDT) Received: from [192.168.0.20] (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 757872D1; Wed, 15 Apr 2020 10:35:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1586939712; bh=rbh9fDJeGinm28yTtw/ldq3r46Kaxtu02L5LD4eqf0w=; h=Subject:To:Cc:References:Reply-To:From:Date:In-Reply-To:From; b=h0LSZW1gDFztRj1QogbWoO595f3fNGjGMf//QtE7Nbz7MLRlB0uCSbGZlAiZy14jd qa09cc7B/nW+lixcv8OniFCgJJp7P95d+KSl4RLFT55X8DmH3C1m8H0IrQ5Bjp/q0z nqFu5AmQ24MVN7dfhmeg7fzLHsSzLImptFrcFbaA= Subject: Re: [RFC PATCH v2 0/6] i2c: of: reserve unknown and ancillary addresses To: Wolfram Sang , Wolfram Sang Cc: linux-i2c@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-i3c@lists.infradead.org, =?UTF-8?Q?Niklas_S=c3=b6derlund?= , Luca Ceresoli , Jacopo Mondi , Laurent Pinchart , Vladimir Zapolskiy , linux-kernel@vger.kernel.org References: <20200318150059.21714-1-wsa+renesas@sang-engineering.com> <20200415082712.GD1141@ninjato> Reply-To: kieran.bingham+renesas@ideasonboard.com From: Kieran Bingham Organization: Ideas on Board Message-ID: Date: Wed, 15 Apr 2020 09:35:08 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 In-Reply-To: <20200415082712.GD1141@ninjato> Content-Type: text/plain; charset=windows-1252 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15/04/2020 09:27, Wolfram Sang wrote: > > Status update on this series: > >> TODO: make sure there are no concurrency issues in patch 6 when handling >> the struct i2c_client. > > This turns out to be annoying. How to make sure that we don't modify the > i2c_client while the adapter it is sitting on just gets removed. AFAICS > we need a new locking scheme just for that and I am not convinced this > is the way forward. > > Also, there is still this small room for regressing when there are DTs > having multiple addresses specified in the DT and the drivers use > i2c_new_dummy_client on these addresses. I have verified that no in-tree > users of i2c_new_dummy (and friends) do work on extra addresses but > still I'd like to completely avoid this potential regression. > > One solution to both problems would be to unregister the reserved device > when its address is requested. I am working on this prototype currently. > However, I am not sure yet if one issue might make this approach messy: > re-registering the reserved device when the probe of the requested > address fails. If we 'unregister' the existing device, could we then register a new 'well named' device more appropriate to the driver, so it doesn't continue to show up as 'reserved' in the system, but rather a more appropriate name to the driver that registered it? > We will see... > Looking forward to it :-) -- Kieran