Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1713418imu; Wed, 28 Nov 2018 13:56:38 -0800 (PST) X-Google-Smtp-Source: AFSGD/VSeu3JfrL6zrV4BsMUBhvJeRPveBduwf4+pUfp47LrYd1VH/MQtQYfSc/dyXddAngOA4lU X-Received: by 2002:a17:902:162:: with SMTP id 89-v6mr38627825plb.293.1543442198403; Wed, 28 Nov 2018 13:56:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543442198; cv=none; d=google.com; s=arc-20160816; b=B/igdjUJ77hiv9a6Mkojrgs7DCSo6mPtgl9wELdn8cTC71QK30cRbdPbzAkQj0jicv lyD4lJCqHoFLi+JQkgWGcfkdVxnK1hyqF9gdQifT58EqGjhvmIri7Ege13BVk5VH2GUA ggD+sSDJLedM1I65yLElQp629hF15pHMz1oaZGrSS9NABr+e3+DjtKYMrmR0MI9VhSpR PGN7pfhv73qbFzU696F0vq6YH1PhBnhWVC+1aM+Lu0MfKEzWowDJTAhaHSFj3v8Sba+O +v4PpJpfPMfXOGkAvvwXGpt9gV20IKWv7OpTqMmIMvqKtqnEBuBi2xEyIL1ar63b20ru M6dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=BmIlW4B7ROgTlUxsno8w9Rh5603OdxQd0eVmbLbTDbw=; b=vQGmyaet4sX2tetekO84APemeOWiTJLdE98Z2zjDvhuKGXQCc2uQ+SkQnWet0MNb/8 EnXQJEhRCMQHdzSiY8hovr8giynAmLGuqoDvtL+h4o8AWtn2ttAr8q/Rp6Q1Cz2mHZ/D +HUUGDtdgh2cPkKcipbtFi8UrNVvnniJT5EV7vO7W6irRcqmuYEAnJLQWFlKBkQQcx94 SXea1tK3d9uh6cx/vDvzLorUgiGmmo5GqsNiAP3piEdxwVPK/ywNedKiuNLMmCO1fm3o M2FfrfRLW8h5TekVWKabdyrh2BBtJ81bTuzkr6WDh57/gi20KEAfPeZJ5YrPwfGcRFkx BYWg== 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 j65si8042099pge.444.2018.11.28.13.56.22; Wed, 28 Nov 2018 13:56:38 -0800 (PST) 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 S1726568AbeK2I6F (ORCPT + 99 others); Thu, 29 Nov 2018 03:58:05 -0500 Received: from sauhun.de ([88.99.104.3]:41712 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726307AbeK2I6F (ORCPT ); Thu, 29 Nov 2018 03:58:05 -0500 Received: from localhost (pd95c76c9.dip0.t-ipconnect.de [217.92.118.201]) by pokefinder.org (Postfix) with ESMTPSA id AF20B2E354A; Wed, 28 Nov 2018 22:54:59 +0100 (CET) Date: Wed, 28 Nov 2018 22:54:59 +0100 From: Wolfram Sang To: Jae Hyun Yoo Cc: Brendan Higgins , Rob Herring , Joel Stanley , Benjamin Herrenschmidt , Mark Rutland , Andrew Jeffery , linux-i2c@vger.kernel.org, openbmc@lists.ozlabs.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, Jarkko Nikula , James Feist , Vernon Mauery Subject: Re: [PATCH i2c-next v9 1/5] dt-bindings: i2c: Add 'bus-timeout-ms' and '#retries' properties as common optional Message-ID: <20181128215458.GB1666@kunai> References: <20181030210917.32711-1-jae.hyun.yoo@linux.intel.com> <20181030210917.32711-2-jae.hyun.yoo@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181030210917.32711-2-jae.hyun.yoo@linux.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 30, 2018 at 02:09:12PM -0700, Jae Hyun Yoo wrote: > This commit adds 'bus-timeout-ms' and '#retries' properties as > common optional properties that can be used for setting 'timeout' > and 'retries' values of 'struct i2c_adapter'. With this patch, the > bus timeout value and the master transfer retries count can be set > through these properties at the registration time of an adapter. > Still the values can be set by I2C_TIMEOUT and I2C_RETRIES ioctls > on cdev at runtime too. > > These properties may not be supported by all drivers. However, if > a driver wants to support one of them, it should adapt the > bindings in this document. > > Signed-off-by: Jae Hyun Yoo > Reviewed-by: Rob Herring Definately NACK on the #retries part. This is purely a configuration thing. Besides that it is kind of ancient cruft, too. I don't recommend it, at all. On the timeout thing, I am still not fully convinced that this is a HW description. I said that before. But maybe I need to understand your problem case better. > --- > Documentation/devicetree/bindings/i2c/i2c.txt | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/Documentation/devicetree/bindings/i2c/i2c.txt b/Documentation/devicetree/bindings/i2c/i2c.txt > index 11263982470e..bdead91f82a4 100644 > --- a/Documentation/devicetree/bindings/i2c/i2c.txt > +++ b/Documentation/devicetree/bindings/i2c/i2c.txt > @@ -80,6 +80,12 @@ wants to support one of the below features, it should adapt the bindings below. > Names of map programmable addresses. > It can contain any map needing another address than default one. > > +- bus-timeout-ms > + Bus timeout in milliseconds. > + > +- #retries > + Number of retries for master transfer. > + > Binding may contain optional "interrupts" property, describing interrupts > used by the device. I2C core will assign "irq" interrupt (or the very first > interrupt if not using interrupt names) as primary interrupt for the slave. > -- > 2.19.1 >