Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp499592imm; Mon, 1 Oct 2018 13:29:12 -0700 (PDT) X-Google-Smtp-Source: ACcGV63CoMfsOVy1dXCrxAc5dTASGIKf5w4LsIh5Pm2ZPtYtm7rvV5aWXIZnw1J21vAYA3G7zBRH X-Received: by 2002:a17:902:f203:: with SMTP id gn3mr13449056plb.162.1538425752237; Mon, 01 Oct 2018 13:29:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538425752; cv=none; d=google.com; s=arc-20160816; b=aYY70mJ6ch538qDd9fiAOW6dw659CiO5K1EX4K+/OjV41Mo6NJ8PUmC3/aqTWn7kz2 gQ4xHZsHdU9vVo6DALUiEnfnfHU4KSxcSahCBVIpwQ70hD4HrDzNjqexJiL1JvXSXBfW VlCysyYmOZ+0TqAwzutnXLz6LIUgfk4wr78FUaAS46zABfaEjEGuVEuSihhMkQcgxrim cLp7OCfdLbFUU6Us39ht8P77SW0p9x2XXSIjjQGX0NYebNdyfh8pAbA2AlHtZx4cYHQc vFy7PmnPVShjVT2Ye6+M9h3Buckd3fyJoADbjwRMj9Cge+s11q6UiPKqRG/Yiz2SgXFg +fcQ== 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=4Gk4rVpKsMBcBbYpF4guFg6mIAXSQrzEC5F0gB1+/OA=; b=mpv7ag0oNmZea3F2Gh8wu18I++bOID39z8uHqbW5xRWIGvFKY6eOs9NecVJLasBSVU dFyjiyhFxKdHEbYzL3RIAinYQ1ogGY0XwNNheISfsIav1zOCSo+4oVGrQ57PFtkj62Dc PlTi0fvQLHtVqI6pE9OUMlnIEwHgq7B8BNnw2qtdEaiknZwcDwq/M3pc/OOw5I0ijqba oFVciuiCZlcq2SeHp5QkEFgS1ARaPmM++n0T0y18Ctz+85j49zBHEJsb4KK/NkBZUhDS L1M1PKBumOd6CC9vbX78wJnrEfeYj6FWKAvnZx1TxI+2Uv1fIlunZsrZLTLa/XslCfAb Iffg== 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 f1-v6si14359668pln.317.2018.10.01.13.28.57; Mon, 01 Oct 2018 13:29: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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726552AbeJBDHg (ORCPT + 99 others); Mon, 1 Oct 2018 23:07:36 -0400 Received: from mga05.intel.com ([192.55.52.43]:21290 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726192AbeJBDHf (ORCPT ); Mon, 1 Oct 2018 23:07:35 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Oct 2018 13:28:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,328,1534834800"; d="scan'208";a="79022363" Received: from maru.jf.intel.com ([10.54.51.77]) by orsmga006.jf.intel.com with ESMTP; 01 Oct 2018 13:27:50 -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 v4 1/3] dt-bindings: i2c: aspeed: Add 'timeout' property as an optional property Date: Mon, 1 Oct 2018 13:27:46 -0700 Message-Id: <20181001202748.8030-2-jae.hyun.yoo@linux.intel.com> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181001202748.8030-1-jae.hyun.yoo@linux.intel.com> References: <20181001202748.8030-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' property as an optional property which can be used for setting 'timeout' value of 'struct i2c_adapter'. With this patch, the bus timeout value can be set through this DT property from the probing time of the 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..1789502818c2 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 : I2C bus timeout in milliseconds defaults to 1 second when not + specified. + Example: i2c { -- 2.19.0