Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1364251ybz; Thu, 16 Apr 2020 07:56:25 -0700 (PDT) X-Google-Smtp-Source: APiQypJea8PGMy4UJ4D/JPZqtz6eka1dZIp4T9WmDInqzQszRzx70D/6AoNO55pYTZggnH08vUfu X-Received: by 2002:a17:906:b7da:: with SMTP id fy26mr10337792ejb.327.1587048985327; Thu, 16 Apr 2020 07:56:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587048985; cv=none; d=google.com; s=arc-20160816; b=u6MN7RhOuzvkkDnb3bWv8fqfv0bWe1Yk+WgPiExWvECWhRmBWy+R+rvFlmXFWJk9as htPgE4nMNxCXu/DAWlJ5gc57SjnmVhKwpgIsTxETR3eMQPP/3na32vwjKso7SjmayR6j rLw4rEL+/cV45MyNuBRM17uwSAW1g5Xodxqyiyib7anv6n+pbIseG2doLRB5ORx0K/R5 PgcsFof9+zVkhE5hjcAStYLO3X03C8o595PU875Cu4U71tkB5EWY6VpD0kIXfg7psKfR AOSiSI7ZWuq88VhsEgJJZzpASi5OL57htBaJOGI2uGUybmbwNszsfR7CuGQ5Xg/Rwzto Wl8g== 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=7MuXs7ZccpAC4sjjTk2H/IjvyyKyvvkn4f/KfRkqDhA=; b=MjXoI6Znsooz+Xih/iOAAbHZ+1sih1CGPf56lJWqAw4shnSfWrQk93LS0UGkQWq2JA y4A2cUJfAmNwdu+D5MuITXxNcu5xrDBIrltVK168gh6wEe5YotEmVkn2PMCRsHih4VGH RKuanJKEX8XtjQvojaekMvfcm2RPHFPwiZuvYUG9fLrWd9kCd5TkeWlEPGYL9J5jaZ1g oUlZcvGOQLhj0pC69J2YvtEz4xZPPbUPhomEmmL5tD/T8Nc/ojznE83Ik4eJinwH/xi5 066k8yWuwyxRcWFdD56zww+5A0pKCEl0cnMl353NzN5fGwd5Tg93lEWc1iSrpTlOg5KA W+Gw== ARC-Authentication-Results: i=1; mx.google.com; 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 n25si11866767ejl.342.2020.04.16.07.55.58; Thu, 16 Apr 2020 07:56:25 -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; 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 S2407606AbgDPOyK (ORCPT + 99 others); Thu, 16 Apr 2020 10:54:10 -0400 Received: from hostingweb31-40.netsons.net ([89.40.174.40]:54697 "EHLO hostingweb31-40.netsons.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2394837AbgDPOxV (ORCPT ); Thu, 16 Apr 2020 10:53:21 -0400 Received: from [88.147.80.45] (port=36640 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 1jP5t7-00283A-Tv; Thu, 16 Apr 2020 16:53:10 +0200 Subject: Re: [RFC PATCH v2 2/6] i2c: allow DT nodes without 'compatible' To: Wolfram Sang Cc: Wolfram Sang , linux-i2c@vger.kernel.org, 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, Geert Uytterhoeven , Rob Herring References: <20200318150059.21714-1-wsa+renesas@sang-engineering.com> <20200318150059.21714-3-wsa+renesas@sang-engineering.com> <11ca7487-ac07-f714-8573-20d1a0040212@lucaceresoli.net> <20200415075911.GA1141@ninjato> From: Luca Ceresoli Message-ID: Date: Thu, 16 Apr 2020 16:53:07 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200415075911.GA1141@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, On 15/04/20 09:59, Wolfram Sang wrote: > >> As I said in the reply to v1, I think we should reserve addresses also >> when there is a compatible string but no matching driver, but this is >> another story and can be handled separately. > > Unless I misunderstand you, I think they do already. Note that > only 'i2cdetect' shows a device as busy *IFF* there is a driver bound to > it. The internal 'i2c_check_addr_busy' does not care about a driver > being bound. You can check this by trying to use > i2c_new_ancillary_device() with an address which is already described in > DT but which driver is disabled. > Ah, yes! I was assuming the opposite but I double checked and you're right of course. Sorry for the noise. -- Luca