Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2496196imm; Thu, 27 Sep 2018 13:56:54 -0700 (PDT) X-Google-Smtp-Source: ACcGV61WGpIemmQqWD5cjV7UAtd08ruA7pVsBUFoQdBSxNm+qh6w+7Ct028HB2ijeD5di/4Cjr+P X-Received: by 2002:a17:902:5e3:: with SMTP id f90-v6mr13126461plf.286.1538081814144; Thu, 27 Sep 2018 13:56:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538081814; cv=none; d=google.com; s=arc-20160816; b=GYGHVDDCghUIMjFDgrAqrWQ3nBQ7tOk8x8c6/3ZhHFxGPM1b5nrYJXxG8MfIN7Pt3m 5MXFGIOnHY3yCuhRnt3sI12tqpNq/jqBFVryJZ3TlIJxzsy4Pyv5zmJLtceiM7PCWRyf 8eZWE9oFSz+FVfDxZLLF2m0Fqofc1SZNQI13BgUeSjvcZkwCjkF3u+9kq0xjvb3BhRnw 4T9LQe0s5oVoHhrQIgwlyO0gokqmvedybuxchbSJfIXbk4N7hUw+Ct6EpXyzcdcaBUaE gwZwI9sTOjLBA0FwhEyun1UmEE2/EqtlBV3asdz0+mriPej5nws21h0MwfOiN0xVbor1 ZanA== 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=P9AAgp1aJCtiE2iLY0ITsG/CFSqTHj/NZRI7o5wIkE0=; b=N4GvB6FqhAY2RhHTbgkQc76Vw7X4i7Oyda5ZC+prd1FN1S/rALgDg5PUGFpqk1ES44 qiab5rZprq803puyD7788KqhTLCsnMOD4qIpa1Hbv169+dhv7/u3uYsKRRPjp2Q6LIQv OUQl4ZXLHjK9Dvf2FNNpmUSqpIM9Q7vRsjROcQIV8gYoLgDXo2Iqi54ivAfDcJdxsytZ PQh282uviYKvPlMvotP7c9FpRFjWGZcSmt+3NfbCFsxFRdwbW70YTbc/ha42moMV++xd nBtsLkNO7Wu5R85x+yyuYi8FbZe1qMdLZStUhaSCROFl2/fXOSHADaZ3Brf57fFPcIsR 4WUw== 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 n1-v6si2904387pfe.66.2018.09.27.13.56.37; Thu, 27 Sep 2018 13:56:54 -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 S1727486AbeI1DQW (ORCPT + 99 others); Thu, 27 Sep 2018 23:16:22 -0400 Received: from mail-oi1-f195.google.com ([209.85.167.195]:37520 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727295AbeI1DQW (ORCPT ); Thu, 27 Sep 2018 23:16:22 -0400 Received: by mail-oi1-f195.google.com with SMTP id e17-v6so2555831oib.4; Thu, 27 Sep 2018 13:56:12 -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=P9AAgp1aJCtiE2iLY0ITsG/CFSqTHj/NZRI7o5wIkE0=; b=NMwHztak7WflvhQD4YB53B67gXxBuKIvn0f3oXKZayy94ryqjZPWJEP8lTkNhPu1wC 2XbEY/qhHHzQnsAIFpvo3GwA4uOJ559pvCe0KcLyiOwiZF1qMZRY17NFeikgJm+GrScm nVi2lDsqktTAX/CWF23AvG+Lzf/FxRBsqmMPzIkcWL1OHKye8+gDvAzEEo3Lwy5q+Svc hIlv5J+xVv4yc819z1S8lPOMMV/enSzuglpst29UqWbvnSYGnziQkaY+szUBnksbwCpV d0C+NCxONc60/hM275vCjZSpVPxJLS/z7e+symwm3Kd9DGfukeAmBX1D4snpQPvw+gSX 0S7w== X-Gm-Message-State: ABuFfoiNy0uRR3Udue2XaNu4zFOST0ddysZmLTvnaYWwOIHMWM40UvQ3 0lE8T1annlaKPW2uzPDp0g== X-Received: by 2002:aca:3946:: with SMTP id g67-v6mr4294416oia.145.1538081772272; Thu, 27 Sep 2018 13:56:12 -0700 (PDT) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id y131-v6sm553144oie.25.2018.09.27.13.56.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 27 Sep 2018 13:56:11 -0700 (PDT) Date: Thu, 27 Sep 2018 15:56:10 -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 v3 1/3] dt-bindings: i2c: aspeed: Add 'timeout' property as an optional property Message-ID: <20180927205610.GA29022@bogus> References: <20180926215842.23125-1-jae.hyun.yoo@linux.intel.com> <20180926215842.23125-2-jae.hyun.yoo@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180926215842.23125-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 Wed, Sep 26, 2018 at 02:58:40PM -0700, Jae Hyun Yoo wrote: > This commit adds 'aspeed,timeout' property as an optional property > which can be used for setting 'timeout' value of > 'struct i2c_adapter'. With this patch, the timeout value can be > set through an I2C_TIMEOUT ioctl on cdev, or through this optional > DT property. Isn't controlling this from userspace or relying on a default sufficient? I can't see this needing to be highly tuned for each platform. However, if we do have a property, it should be common. > > Signed-off-by: Jae Hyun Yoo > --- > Documentation/devicetree/bindings/i2c/i2c-aspeed.txt | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/Documentation/devicetree/bindings/i2c/i2c-aspeed.txt b/Documentation/devicetree/bindings/i2c/i2c-aspeed.txt > index 8fbd8633a387..d6965b360fbc 100644 > --- a/Documentation/devicetree/bindings/i2c/i2c-aspeed.txt > +++ b/Documentation/devicetree/bindings/i2c/i2c-aspeed.txt > @@ -17,6 +17,9 @@ Optional Properties: > specified > - multi-master : states that there is another master active on this bus. > > +- aspeed,timeout : I2C bus timeout in microseconds defaults to 5 seconds when > + not specified. > + > Example: > > i2c { > -- > 2.19.0 >