Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp250974imm; Wed, 3 Oct 2018 15:31:38 -0700 (PDT) X-Google-Smtp-Source: ACcGV61cP+xuKM8/5db8WJLny7tv9jM4TDAF0eaBJXt/fd/pKZ7EDP8fYVbr5OSVydkwvJAlNLke X-Received: by 2002:a17:902:20c5:: with SMTP id v5-v6mr3650101plg.62.1538605898570; Wed, 03 Oct 2018 15:31:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538605898; cv=none; d=google.com; s=arc-20160816; b=vUAsrkk0q50iHUhF+nleXXxHQ5C4JQObgQ0zeqAkk+CNIgzdPCMS1NIWmWr5IkiUM3 XBPo19FF9lgvJs7p6YYGcI9lDXuRKgDiyXdyytp/wgcpahsY9kFcqjgzpHh5olo99yIF o6yLx2eYQrFItvi/SxgkK+lY42FKb5aJiBXAdQF9Hr8bZToOFiftsvPi1pt0z1sev/gX PXXN3qNPzJQtlCRHNqBndrXpFY21ISqLyAZ4joo58gSeEHdP9qQlw4yYSXq099aiT6yT gMjZvFvx2UpY1uGuPDrphiTyDIvl7pxppKIrXyG2kP9S7Tf4Hqp1zo+JjodkHwKpX5fj wRTA== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=b4cR9AZBdrt9YqXGpAELlK/YFVd7ao9AeKy8g1/i//s=; b=XceMB+QOeVvPvoVbpRrMnIeTBum18nhXFwP5fS7sxjvR5ygqLBhy4tkMf4W2dyvDwR QUubHb+EUVhhHzmuzihi2S0vUIhUcRZfPuMw1Z6rUVPVE+O9L68PgxsNolrRdr4FHNfi I8CK1EgXEDR7OxKGrMYE9yDuUWYcCo7ceTcIiwdEUoRDVhnmr1Mj7b9RtVDpAcB5ATpS tHpKkGNDCTO9Skj3MYz8i9m/PDBWL7ptmMvdbAKzq6VIh2pRkXq4n8tZ9MQRzHcAo9u6 7LRcXTpFl273bk2W1uNNuZfd/dLW11Q3NT6P/IZMdMXZsC3szzWlwQlpquidC0KbEfzD GCQg== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w16-v6si2985229pll.234.2018.10.03.15.31.22; Wed, 03 Oct 2018 15:31:38 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727540AbeJDFVd (ORCPT + 99 others); Thu, 4 Oct 2018 01:21:33 -0400 Received: from mga02.intel.com ([134.134.136.20]:1942 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726656AbeJDFVc (ORCPT ); Thu, 4 Oct 2018 01:21:32 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Oct 2018 15:31:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,337,1534834800"; d="scan'208";a="97208515" Received: from maru.jf.intel.com ([10.54.51.77]) by orsmga002.jf.intel.com with ESMTP; 03 Oct 2018 15:31:12 -0700 From: Jae Hyun Yoo To: Brendan Higgins , Wolfram Sang , Benjamin Herrenschmidt , Joel Stanley , Rob Herring , 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 Cc: Jarkko Nikula , James Feist , Vernon Mauery , Jae Hyun Yoo Subject: [PATCH i2c-next v5 3/5] dt-bindings: i2c: aspeed: Add 'timeout-ms' property as an optional property Date: Wed, 3 Oct 2018 15:31:05 -0700 Message-Id: <20181003223107.16133-4-jae.hyun.yoo@linux.intel.com> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181003223107.16133-1-jae.hyun.yoo@linux.intel.com> References: <20181003223107.16133-1-jae.hyun.yoo@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This commit adds 'timeout-ms' property as an optional property which can be used for setting the bus timeout value of an adapter. With this patch, the bus timeout value can be set through this DT property at the probing time of this module. Still the bus timeout value can be set by an I2C_TIMEOUT ioctl on cdev at runtime too. 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..af9be200383c 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. +- timeout-ms : bus timeout in milliseconds defaults to 1 second when not + specified. + Example: i2c { -- 2.19.0