From patchwork Wed Feb 17 18:59:18 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Albrecht_Dre=C3=9F?= X-Patchwork-Id: 45654 X-Patchwork-Delegate: grant.likely@secretlab.ca Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from bilbo.ozlabs.org (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id D86EBB7EB9 for ; Thu, 18 Feb 2010 06:00:03 +1100 (EST) Received: by ozlabs.org (Postfix) id 797D2B7D01; Thu, 18 Feb 2010 05:59:22 +1100 (EST) Delivered-To: linuxppc-dev@ozlabs.org Received: from smtp6.netcologne.de (smtp6.netcologne.de [194.8.194.26]) by ozlabs.org (Postfix) with ESMTP id 1FC41B7CF9 for ; Thu, 18 Feb 2010 05:59:22 +1100 (EST) Received: from antares (xdsl-89-0-190-231.netcologne.de [89.0.190.231]) by smtp6.netcologne.de (Postfix) with ESMTP id 15AC62A0C03; Wed, 17 Feb 2010 19:59:18 +0100 (CET) Received: from antares (localhost [127.0.0.1]) by antares (Postfix) with ESMTPS id CB38DBA019; Wed, 17 Feb 2010 19:59:18 +0100 (CET) Date: Wed, 17 Feb 2010 19:59:18 +0100 From: Albrecht =?iso-8859-1?b?RHJl3w==?= Subject: [Patch v2 2/2] 5200/mpc: improve i2c bus error recovery To: Linux PPC Development , Devicetree Discussions , Grant Likely , "Ben Dooks (embedded platforms)" X-Mailer: Balsa 2.4.6 Message-Id: <1266433158.2322.1@antares> MIME-Version: 1.0 Content-Disposition: inline Cc: "Ira W. Snyder" X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Make the I2C adapter timeout configurable through a Device Tree property which gives the timeout in microseconds. Change vs. v.1: use "fsl,timeout" as property name (Thanks, Grant) Signed-off-by: Albrecht Dreß Acked-by: Grant Likely --- linux-2.6.32-orig/Documentation/powerpc/dts-bindings/fsl/i2c.txt 2009-12-03 04:51:21.000000000 +0100 +++ linux-2.6.32/Documentation/powerpc/dts-bindings/fsl/i2c.txt 2010-02-17 14:18:01.000000000 +0100 @@ -21,6 +21,7 @@ Recommended properties : - fsl,preserve-clocking : boolean; if defined, the clock settings from the bootloader are preserved (not touched). - clock-frequency : desired I2C bus clock frequency in Hz. + - fsl,timeout : I2C bus timeout in microseconds. Examples : @@ -44,5 +45,6 @@ Examples : interrupts = <43 2>; interrupt-parent = <&mpic>; clock-frequency = <400000>; + fsl,timeout = <10000>; };