Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp428750ybh; Thu, 12 Mar 2020 04:45:13 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtHIQgCs2BoW9FQfSclZPbjvBlNB0g++tJhyiWVNKfMPQq/F/SLiztx1LwdYUWoqioshq8I X-Received: by 2002:a9d:6443:: with SMTP id m3mr5849449otl.20.1584013512798; Thu, 12 Mar 2020 04:45:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584013512; cv=none; d=google.com; s=arc-20160816; b=v65jCZmjS+COjel5eC5BFU5REAkOvNYPMg6DHLrsyB3aIhxFcga+90DawJFBn9xP9C VoBHSERO3mNtFdoip/u0rwS66CRfCb9BcSgTPvDUVyBwViywo6JUiKKG7QSfDNOzmpV0 hAb6JpYvOAP7L+AcHATWfB84hjRx0lNEi7veARRzi15gSHi9765dB6Y2mw5so+wQXXm9 GBFWYtH6Pz+oAbCWwAVBuv47eOim3ayh7vIzhWJn7JFH/24cf3nN7QdOLrW8HllpLehs 0v3HImFeZkRNo8lekkkzPA0YnmkpfT4mIdxBbHD02xyI7NzVtoGZ3phw/zRCsu2dHZ8r kpGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=fobXROtPO1dyhAC958BP7AEZagR3i1yqnURZJDDcvrk=; b=Mihi3iNBTc7VqGY10uqmC9EtnSECDBJ8bfuZg629BtK1gDXfMpaNI2Fc4jgsbn5v4P u3OakrO852bqrdkvgZpIEBGdjNyshNpIAHj21ERGTnEYLR/ap39MGMvKBlwOsjcXU/bU NJkT9Ir50RTwdb5N/vx6zME+kUSzmDgV/LnPLzxZrphmo9mctM6TEVY3SyIZUxNJ1mqf I/wj13fyE7hhLkCvTHIgBgY9wefzrB+hTX4XeTwfmK5T9ThMczns41b/RdN6y7Sm2x4U wGkvKcSvlhKhhf0xCcgvfDCkdvdAgPzt0fQ4nqEOQm/x2GZ2D3NAvw8DQPoC2Ls9KsQc KZbw== 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 i2si2721338oth.186.2020.03.12.04.44.59; Thu, 12 Mar 2020 04:45:12 -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 S1726677AbgCLLog (ORCPT + 99 others); Thu, 12 Mar 2020 07:44:36 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:54575 "EHLO relay1-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725268AbgCLLog (ORCPT ); Thu, 12 Mar 2020 07:44:36 -0400 X-Originating-IP: 90.66.181.224 Received: from localhost (lfbn-lyo-1-2013-224.w90-66.abo.wanadoo.fr [90.66.181.224]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 7A727240004; Thu, 12 Mar 2020 11:44:32 +0000 (UTC) Date: Thu, 12 Mar 2020 12:44:32 +0100 From: Alexandre Belloni To: Wolfram Sang Cc: Luca Ceresoli , Geert Uytterhoeven , Wolfram Sang , Linux I2C , Linux-Renesas , linux-i3c@lists.infradead.org, Kieran Bingham , Niklas =?iso-8859-1?Q?S=F6derlund?= , Jacopo Mondi , Laurent Pinchart , Vladimir Zapolskiy , Linux Kernel Mailing List , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" Subject: Re: [RFC PATCH 3/7] i2c: allow DT nodes without 'compatible' Message-ID: <20200312114432.GA3384@piout.net> References: <20200220172403.26062-1-wsa+renesas@sang-engineering.com> <20200220172403.26062-4-wsa+renesas@sang-engineering.com> <20200312111950.GA1013@ninjato> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200312111950.GA1013@ninjato> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/03/2020 12:19:51+0100, Wolfram Sang wrote: > > Clearly this does not fit the case reported by Alexandre: a device > > having a driver which is known to be badly buggy, so we don't want to > > instantiate it. But again, this should not affect DT as it is not > > describing the HW, but only an implementation detail. Probably disabling > > or blacklisting the driver would be a better option there? > > "Fixing the driver" is the first thing coming to my mind ;) But yeah, > blacklisting would be another good solution. With only the information > above, DT is not the right place to fix a broken driver. > To be clear, the driver is working properly but the HW isn't. It is a PMIC and we need to avoid linux talking to it so the PMIC doesn't end up killing the bus. We end up with a node properly described in the device tree but with status = "disabled". The relevance to the discussion was that you know what is there and you want to avoid using its address. See the pmic node on i2c1 in arch/arm/boot/dts/at91-sama5d3_xplained.dts for what I'm referring to. > > My apologies to Wolfram, I appreciate a lot the effort you are doing, > > but before reviewing this patch I have never realized what I tried to > > explain above. > > All good, Luca! Talking over code usually brings in viewpoints which > have been missed so far. This is expected. Actually, I am very happy to > have this discussion! > > All the best, > > Wolfram > -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com