Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp687124ybz; Wed, 15 Apr 2020 16:43:54 -0700 (PDT) X-Google-Smtp-Source: APiQypLqD27KyNvBqc7dzM5+417XDKNuMwfPz0vl4FJuMSQ67ozWoKCx4wgm2mRZ3Y0C25IczFB+ X-Received: by 2002:a17:907:2107:: with SMTP id qn7mr5027120ejb.316.1586994234478; Wed, 15 Apr 2020 16:43:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586994234; cv=none; d=google.com; s=arc-20160816; b=XR+a45rgENvdln3hBVyPgqkkn5q++ZGYyHot1xYlEeQ0TzINFi24A1EairWBcQfcVj sa3UWP4/mHIRNeLFdXvLexBXmoz4lth0JDRM4p6/hVw/oTi9sYUegKjz7mQF14hzfHW0 nEPvZUcfWv51GHRpyCwdFE+ekLyRYWg4GFElkAEYDPb+RVgNF3VuwtoB7KAbbPpX/yMa BN2pJf/bv7IjChFMGkiMPaSkpLlhzFyByct4OxSR3BqqFIsQ0dYSPyIj8HVCFmIF4eYB Jqy2J3vrEqpY7djF3kr/BboOgsUcYFmpHYQNZz/b7FXYp3HXYW8VoUt9Cx9cfHcsodcs vX/w== 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=8tjuSjlsmHffHVrTnZEAMeMg95T8PBhOs7aao5A+xKo=; b=QtzJuj/T38fiw9k9OVC+2LWuK6GbYviZ3vGnsJw8Q/9Tw17gINwgSWsvbIA2urzfsH k43+QCcTtO9HJUbuHZpXQmDcio6Qzu2NF6utvc5j5b3ZryAE0KBxtv+34A2IeKYSk3HJ 5UKGcPMjGRtkhDxDLDSogj9fMEjOZWmUeIM+/ywdSmSUCrMgmkeJImVx3VYVHZeewN0w zfXpQvVL8TFa0j+dt0t/f7Zt2Ev4THo0BJb1y3bt2PBYXy57sSNpi4MAdYQS170QzQNj rWv9tFjyECxSIzVAnhJ2j+Y4jx0+mmvlUMxINPvxmvw1j+b/gJQ8tVB/NqHX+xNOYDtD HMmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=UeOoK6zh; 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 o18si9119681ejr.273.2020.04.15.16.43.31; Wed, 15 Apr 2020 16:43:54 -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=UeOoK6zh; 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 S2635625AbgDOIIb (ORCPT + 99 others); Wed, 15 Apr 2020 04:08:31 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:33816 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2635591AbgDOIIF (ORCPT ); Wed, 15 Apr 2020 04:08:05 -0400 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 9D67E2D1; Wed, 15 Apr 2020 10:07:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1586938079; bh=d3cM3Q3qHFbLBztwm4kDpHyKueuNUZD1Tu5L0584nsY=; h=Subject:To:Cc:References:Reply-To:From:Date:In-Reply-To:From; b=UeOoK6zhCEGPmWLfhjDbfahqvS6Qzqp2JDYPHFhNseng8pD8GWoA8LBLcfgqV8B0d FgdG8w1Y9HRgqoqn2TiLL/xE0BFME9xvY4VZWRmo4zLoJ2Z+SGoMKKSGLBNy4sGABS bcUJCRW8hGIv5gCmFr39QrbNGoYsl5bInOrGZepM= Subject: Re: [RFC PATCH v2 2/6] i2c: allow DT nodes without 'compatible' To: Wolfram Sang , Luca Ceresoli Cc: Wolfram Sang , linux-i2c@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-i3c@lists.infradead.org, =?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> Reply-To: kieran.bingham+renesas@ideasonboard.com From: Kieran Bingham Organization: Ideas on Board Message-ID: <8937e466-fe3f-3686-98a9-8013990bc3f9@ideasonboard.com> Date: Wed, 15 Apr 2020 09:07:56 +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: <20200415075911.GA1141@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 Hi Wolfram, On 15/04/2020 08: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. Aha, is it easy enough to distinguish that difference in user-space so that we can present a specific character to indicate this in i2cdetect? Or is that not so easy? -- Kieran