Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp788951ybb; Fri, 10 Apr 2020 10:07:43 -0700 (PDT) X-Google-Smtp-Source: APiQypIayVp5c043Uz0IJ9Ge5WtLVNIzGz82K40iWUfurVw+OKCa+wk+KhZ36OZnd7B6pXy0R5G1 X-Received: by 2002:ac8:66cd:: with SMTP id m13mr143189qtp.91.1586538463401; Fri, 10 Apr 2020 10:07:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586538463; cv=none; d=google.com; s=arc-20160816; b=JjadDLhe7OoXOaJ9Z1q4kWzVD/+MBRgmtOVfBFPExhv1NBXu5MuFWGoLL6SeXbhyvi v0jl0LHdejnD7ZgLr1EpmuRBvRgOBzJD9hLOnKuueh8iS1ZuYrj1Bp7kCNu0fkphBXYy KgGdumAVGhD+7q+hP5CIdSC+aoFNycbHmK8tcMIFfq0TifKg87wyUsd7vbUSEHIBeHdg 08d3SrkMBXTvJkHoqoUPecocg1xQ9wT/M1mIMRK1q1hTmLfFrtaq26Gan6A2WjUy/Pbi zJKRljAm9DXxke6NKzRoD1efbVPpM92Jt835HPQ1v2yj7PNAF2acijZZ9+Vb1cyN9hCA qrCQ== 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=/NDShLb+d06YKSojdJHQkIFEAJ9CGeztEz3eKGRve5Y=; b=EW/gHySFuwZKiOAX47IHRkPJtBRddNw3jBJlCokSD3sl/UNsJ/6/j6YIrAyqpR0v47 Vai5l0yU2b9QeYeVe0SCdiW4Xi7pHPdpOshCjlY/ACE1JClC5MNY/9BZXfbzq5nCXpbi 1hwswBvRwfpwuPqDRcF55lJddPTIONXhd6PCTmJIlKbGlcpdTwPlbpNnUbv+d5yXaRvU BP0KvKrYbh35FY3gk1Gq70W7QDD4sbTHcYYblsAWfhL5B/PiJLSiLoHy4CF61FcV9EPK lyXQnyrtTATtOXRDgu+vk+nohmKld4MuT5k7o5A+/V0epN97kNzqPBhREfNj9MXtdB3V aC0g== 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 s19si1479717qth.161.2020.04.10.10.07.28; Fri, 10 Apr 2020 10:07:43 -0700 (PDT) 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 S1726646AbgDJRFS (ORCPT + 99 others); Fri, 10 Apr 2020 13:05:18 -0400 Received: from hostingweb31-40.netsons.net ([89.40.174.40]:33895 "EHLO hostingweb31-40.netsons.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726142AbgDJRFS (ORCPT ); Fri, 10 Apr 2020 13:05:18 -0400 Received: from [5.157.111.77] (port=58954 helo=[192.168.77.62]) by hostingweb31.netsons.net with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1jMx5f-005r4M-Q0; Fri, 10 Apr 2020 19:05:15 +0200 Subject: Re: [RFC PATCH v2 5/6] 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 References: <20200318150059.21714-1-wsa+renesas@sang-engineering.com> <20200318150059.21714-6-wsa+renesas@sang-engineering.com> From: Luca Ceresoli Message-ID: <6ebd789e-879c-6f58-2c20-abecad2ce57f@lucaceresoli.net> Date: Fri, 10 Apr 2020 19:05:10 +0200 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: <20200318150059.21714-6-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 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 On 18/03/20 16:00, 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