Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp888727imm; Fri, 5 Oct 2018 13:39:56 -0700 (PDT) X-Google-Smtp-Source: ACcGV6101dE8PxGad5oRIYEJ3gxvQx2q/D8ECxZ07u7GQp4v0udcQRE7Q9mBHKCg6xBUz5D/L/7U X-Received: by 2002:a62:3a84:: with SMTP id v4-v6mr13546683pfj.118.1538771996043; Fri, 05 Oct 2018 13:39:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538771996; cv=none; d=google.com; s=arc-20160816; b=PMK4AkG4YfidxcQgFLecrPrHXgSzSA9W4s7LIdsrkIM5pT70IL3zEIxY/zezZzVl5A QsWb5OPPC9KtcD1m9NUt9X9gH9Ds0Q8IreDO8az5ELmWKtncMWetkYNsfAhUHC9mZttx +lJz9ylKlMNOGWzuxoQFnDKgokvKs5b6Ur+IQvwiwXG950OKpH8KT6Ft26PQ/262k4/Q hJJtsLdO19YleYKlsEGo/MiPFGVPPrPiER2XNVwmmFVPFjf3BmhxtM9Gqep71q2DGhZz /mVIFAs/l2UnLBRxBig5Eycu4s6qA9AYNVERyvRJmL8au2k/yoZxHkJND9lTrsaOMK0V wVRw== 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=CkGf5wPbkzH+vS8XlJqtwYTTlXEgJeIqSANdnaucbS8=; b=dokURvKojVF+TM49eLO9APs8pAsLn2osuIgU6ygJ1XGUtzQkJhKofQm3u2r+tbDL4x f5VTugTnlh/vQSxTEeB9Fel8zeX2Q0og+mTJUdNhR9fV/DsqGIUBtgnJucL6lGJ5OBc8 zlrbyKQOUUx0edLbzKYH6Uq3pmGvxL1vFNJKNSJZMf3R6zwaWl0Madp7rXpl5i5xGeJ3 o6WK8I/UtUL5HhUpf1WNPYf8jIID+uk7bl5UJfz/Kq1irZAazAyYWEpfiMnLycw1U02V PDCWUhMErU8m0LY8porIfyLuNFa+WkRcu/f4KfYygSa8MDWb66UeMKN3tgxnoRyvpjdi 0I/A== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s22-v6si9308634plp.336.2018.10.05.13.39.40; Fri, 05 Oct 2018 13:39:56 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728826AbeJFDj4 (ORCPT + 99 others); Fri, 5 Oct 2018 23:39:56 -0400 Received: from mail-oi1-f194.google.com ([209.85.167.194]:37985 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728139AbeJFDjz (ORCPT ); Fri, 5 Oct 2018 23:39:55 -0400 Received: by mail-oi1-f194.google.com with SMTP id u197-v6so11456238oif.5; Fri, 05 Oct 2018 13:39:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=CkGf5wPbkzH+vS8XlJqtwYTTlXEgJeIqSANdnaucbS8=; b=jJCLupPLYca/dLLULuK5gohJiCXmyMkx08OYdzTJN0R8UWc5JY+jvxWEuIgKA2OmhF LqVytTL1SALia17WaQBpU807PP6jAsp1SFl6e0Wlm4uBvF0KrYlUhdaKgfzTmnmoqGuh wyKArC/THkIWv5RimQtmroJ4Q/yGopw04OVR18nFOTK0VL7MorVx6gLQUmxRKgo7rJ5y fxY6yXt/+qpCYCxh4hfcp0e9l+2qQUQ+j/TpFojf0iDKbklgST5qDwtlHZZERdamsjCP ORBX7gsdh+858ttjIUEyAdh1gz334QkEUMzRUmzokJXLuFLoDecOFBIo/R/Z8jiBD5/V bH2g== X-Gm-Message-State: ABuFfogkPVWmPTN7puNnJy5q/PCLAZ9Nbv1noGCjbiIr3FPOtouAh3pr lNRZsYRiVM6xL9FvgnbecA== X-Received: by 2002:aca:e6c4:: with SMTP id d187-v6mr299340oih.237.1538771972110; Fri, 05 Oct 2018 13:39:32 -0700 (PDT) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id 14sm691458otk.49.2018.10.05.13.39.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 05 Oct 2018 13:39:31 -0700 (PDT) Date: Fri, 5 Oct 2018 15:39:30 -0500 From: Rob Herring To: Jae Hyun Yoo Cc: Brendan Higgins , Wolfram Sang , Benjamin Herrenschmidt , Joel Stanley , 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 v6 1/5] dt-bindings: i2c: Add 'timeout-ms' and '#retries' properties as common optional Message-ID: <20181005203930.GA12987@bogus> References: <20181004204322.20665-1-jae.hyun.yoo@linux.intel.com> <20181004204322.20665-2-jae.hyun.yoo@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181004204322.20665-2-jae.hyun.yoo@linux.intel.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 04, 2018 at 01:43:18PM -0700, Jae Hyun Yoo wrote: > This commit adds '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 > --- > 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..6d7a6e919cf8 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. > > +- timeout-ms bus-timeout-ms in case we have some other timeout needed. > + 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.0 >