Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp639478ybb; Fri, 10 Apr 2020 07:13:24 -0700 (PDT) X-Google-Smtp-Source: APiQypI6piGTIJp7YC0PBuHn/sC8PnnANOefCRFwaN9YkqkZJZCAvCgn0Ss4gi4JC79NdLpBBYhD X-Received: by 2002:ac8:34b3:: with SMTP id w48mr4669612qtb.148.1586528004514; Fri, 10 Apr 2020 07:13:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586528004; cv=none; d=google.com; s=arc-20160816; b=pkFFWEVK8qPZQEo20LTE9GgQx+PtprE4CMb/6gpSDuGL1jJeDoB02PYITV7EcFns2t rC2G2OGeRH07p/dcnqo1D7eGkMH8/+wAodRpYKKauu96g/cM0UVDJPjoF5gWKUiDjAsy Iegxx3beZsKCQzQI5auMCJVTCrdEuWiM2ribJohYWTbzo0QaGmRuAgmJOZFkBJn9ljUr eF34B9voUfgf1I97n9mM3z7dndmKON5LC0Mjs5Jxdvu7xr8MOE+5hH48cSiR/Ecbhhms 15/AQj2t8/dTF2p6IJTQ9eiVKBSHUqkUjp4q5otO/kc3oiWQfWrKSXR7NRGOxyCUCMof X43g== 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=oiRHlVztD8a2MEIPhQF8n/8w+sn5tYmHSliW0apGi4U=; b=oDOt0xYk0xBjnvBmWS/aukB2AYC/A6wmQRy5vwGJjego8/Ca5SfHWQ67FPR7m/6nrn LqMq68RJWSK2fd47MoUFIMdAvbIZR+YDwTua0m/uN0GGN/2lBK7+ipXKd4qZFK+05izZ lCP2mQU5tejdpAB53JPMSbNa3P+wbgQKTJlvCbuO4BcYVD+K8wRJBbE313aWT3Y/iQ7H KBl0gCIJegt6ep/mhFVRG9iu/uRWJfxD1pbDpcA+iwx9y8HA/o18pRjKvHKjzZAU62cU rgUKXFS3gx2yW7T4eIDyk4a34uDooc0raFjHy0RQcOzvdmlDl9gM9t4u/wJaFWzojplD XqwQ== 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 x5si1160622qtv.36.2020.04.10.07.13.09; Fri, 10 Apr 2020 07:13:24 -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 S1726652AbgDJOMa (ORCPT + 99 others); Fri, 10 Apr 2020 10:12:30 -0400 Received: from hostingweb31-40.netsons.net ([89.40.174.40]:32976 "EHLO hostingweb31-40.netsons.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726177AbgDJOMa (ORCPT ); Fri, 10 Apr 2020 10:12:30 -0400 X-Greylist: delayed 1510 seconds by postgrey-1.27 at vger.kernel.org; Fri, 10 Apr 2020 10:12:29 EDT Received: from [5.157.111.77] (port=57208 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 1jMu02-004cjm-LM; Fri, 10 Apr 2020 15:47:14 +0200 Subject: Re: [RFC PATCH 3/7] i2c: allow DT nodes without 'compatible' To: Wolfram Sang Cc: Geert Uytterhoeven , Wolfram Sang , Linux I2C , Linux-Renesas , linux-i3c@lists.infradead.org, Kieran Bingham , =?UTF-8?Q?Niklas_S=c3=b6derlund?= , Jacopo Mondi , Laurent Pinchart , Vladimir Zapolskiy , Linux Kernel Mailing List , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Alexandre Belloni References: <20200220172403.26062-1-wsa+renesas@sang-engineering.com> <20200220172403.26062-4-wsa+renesas@sang-engineering.com> <20200312111950.GA1013@ninjato> From: Luca Ceresoli Message-ID: <62896a27-9df0-ef84-9724-2ff34b9bc9a7@lucaceresoli.net> Date: Fri, 10 Apr 2020 15:47:14 +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: <20200312111950.GA1013@ninjato> Content-Type: text/plain; charset=windows-1252 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 Hi Wolfram, On 12/03/20 12:19, Wolfram Sang wrote: > Hi Luca, > >> But the kernel currently ignores nodes that have no matching driver, >> right? So in this case the kernel knows that that address is used, but >> ignores this information and considers the address as available. > > I'd rather call it "unbound" than available. See later. > >> Seen in this perspective, we should have a "compatible" for all nodes: >> it is just describing the hardware and could be out of the kernel >> control. But instead of discarding all nodes without a matching driver, > > And what compatible value would you use if you know there is something > sitting there and don't know what? This is what this series aims to > address because we thought a compatible name like "reserved" would not > be a good idea. The scenario I have in mind is when DT has a proper compatible string, but the kernel has no driver for that chip. Could be not implemented or simply not compiled. There are 3 cases generally: 1. compatible string present, kernel has a matching driver 2. compatible string present, kernel has no matching driver 3. compatible string not present Case 1 is obvious. Case 3 is currently ignored, with your patch the address will be reserved. Case 2 is currently ignored, but we have all the information to reserve the address just like in case 2, but there's no plan to reserve it. Why not? (not necessarily in this series, I'm just trying to understand if the idea is correct) -- Luca