Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp600250ybf; Fri, 28 Feb 2020 04:12:29 -0800 (PST) X-Google-Smtp-Source: APXvYqy7Kq/dA+Jlo13QCLSeeFwapOWte/tEZyc5A2KAgK1VPwsunQygyV5s3/tMw3Snibx/uIYL X-Received: by 2002:aca:3d7:: with SMTP id 206mr2940062oid.98.1582891948870; Fri, 28 Feb 2020 04:12:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582891948; cv=none; d=google.com; s=arc-20160816; b=vdJ60s8kPKYOy38tJWFA7DrC9fLhJ1YjTkcqK2GrAettl45CPx0Nzg8vfEK8wUE5kU 7yf8eoLKjUdOTgutgNwBhjFuflhtOsd4RgWsbYqJgBGAsAMazclMWWuhkeKCg7hbUcvL KURjnnNXxihql+sbTE4coo+qjNgweR52ZnFkbMNNarxdlQPM/NIWg0wgkLMlML6sUerM aUVCltXOwRpqOWiBVvkL2nharT0W8G6ytISPIOXg5vuYygJRgVMSTuYrPkAh41lJ1vcf rDn+gUy9wUz8doFQYhcnLxqCbaY217SAUvRaO8cHTRFKz7J28XFW8EzIdlXdMlBXGXPe xxEQ== 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:from:references:cc:to:subject; bh=ZRReqs1dxBu1Z+lORQheK7IBkwlCqlHpbXU9aHbUb+c=; b=m9sfshZv/WpgxuKGDAGPFTrsqFTAFbQseDPmaX3BCQjz61hxJy8SVLPQGFqZAYuElt xch7dSM6xzhQZCJ9G1P9L8+HysvH6gCMI9KGYTZgpcrzQ/C/g3hRPF7rqUUCRpwTT+zi QAgxJT4Q5mhYH9RuWSkQEjX14bR/wURFz/Rojrzvj/C75UQvwW0oVoRD8l4yyEuAw3Hl TzvwpGCsTvsF1fcVhXaf13D4oQJbWYlkaUuFxxvQaVxByc+WbgoWp/0kxlGybketEG6m WsfQByiEYwabdc+GS5+gOtEJEnyZ3i8uNJdEUQ2lW+mfNkM0OVmwzepbE2gMdqpB75Iq TLDg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r22si1375493otn.192.2020.02.28.04.12.17; Fri, 28 Feb 2020 04:12:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725886AbgB1ML4 (ORCPT + 99 others); Fri, 28 Feb 2020 07:11:56 -0500 Received: from hostingweb31-40.netsons.net ([89.40.174.40]:44088 "EHLO hostingweb31-40.netsons.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725796AbgB1ML4 (ORCPT ); Fri, 28 Feb 2020 07:11:56 -0500 Received: from [109.168.11.45] (port=49166 helo=[192.168.101.73]) by hostingweb31.netsons.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92) (envelope-from ) id 1j7eUh-001wPs-J2; Fri, 28 Feb 2020 13:11:51 +0100 Subject: Re: [RFC PATCH 6/7] i2c: of: mark a whole array of regs as reserved To: Wolfram Sang , linux-i2c@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, linux-i3c@lists.infradead.org, Kieran Bingham , =?UTF-8?Q?Niklas_S=c3=b6derlund?= , Jacopo Mondi , Laurent Pinchart , Vladimir Zapolskiy , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org References: <20200220172403.26062-1-wsa+renesas@sang-engineering.com> <20200220172403.26062-7-wsa+renesas@sang-engineering.com> From: Luca Ceresoli Message-ID: <5bcda563-cbb6-c615-58fb-1f0fe9ed4c9d@lucaceresoli.net> Date: Fri, 28 Feb 2020 13:11:51 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200220172403.26062-7-wsa+renesas@sang-engineering.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hostingweb31.netsons.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lucaceresoli.net X-Get-Message-Sender-Via: hostingweb31.netsons.net: authenticated_id: luca+lucaceresoli.net/only user confirmed/virtual account not confirmed X-Authenticated-Sender: hostingweb31.netsons.net: luca@lucaceresoli.net X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 20/02/20 18:24, Wolfram Sang wrote: > Back then, 'reg' properties in I2C DT bindings only contained one > address and this address was assigned a device and, thus, blocked. > Meanwhile, chips using multiple addresses are common and the 'reg' > property can be an array described by 'reg-names'. This code enhances > I2C DT parsing, so it will reserve all addresses described in an array. > They will be bound to the 'dummy' driver as 'reserved' iff the first > address can be assigned successfully. If that is not the case, the array > is not further considered. If one later address of the array can not be > assigned, it will be reported but we don't bail out. The driver has to > decide if that address is critical or not. > > Signed-off-by: Wolfram Sang Reviewed-by: Luca Ceresoli -- Luca