From patchwork Tue Apr 5 08:00:56 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lei Wen X-Patchwork-Id: 89794 X-Patchwork-Delegate: hs@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 81A55B6F98 for ; Tue, 5 Apr 2011 18:01:41 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D2017280C8; Tue, 5 Apr 2011 10:01:30 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id b+YEupABhbsc; Tue, 5 Apr 2011 10:01:30 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1E854280C5; Tue, 5 Apr 2011 10:01:22 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9509928098 for ; Tue, 5 Apr 2011 10:01:19 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id D4VpTf3uFdwz for ; Tue, 5 Apr 2011 10:01:19 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from dakia2.marvell.com (dakia2.marvell.com [65.219.4.35]) by theia.denx.de (Postfix) with ESMTPS id 7D83C280A5 for ; Tue, 5 Apr 2011 10:01:18 +0200 (CEST) X-ASG-Debug-ID: 1301990476-082b1cf00001-4l7tJC Received: from maili.marvell.com (maili.marvell.com [10.68.76.51]) by dakia2.marvell.com with ESMTP id AJtXNM8KVC3kGcKi; Tue, 05 Apr 2011 01:01:16 -0700 (PDT) X-Barracuda-Envelope-From: leiwen@marvell.com Received: from localhost (unknown [10.38.12.126]) by maili.marvell.com (Postfix) with ESMTP id 731528A408; Tue, 5 Apr 2011 01:01:16 -0700 (PDT) From: Lei Wen To: Heiko Schocher , Prafulla Wadaskar , Wolfgang Denk , "u-boot@lists.denx.de" , Marek Vasut , Ashish Karkare , Prabhanjan Sarnaik , Yu Tang , adrian.wenl@gmail.com X-ASG-Orig-Subj: [PATCH V8 2/6] mv_i2c: fix timeout value to be consistent with comments Date: Tue, 5 Apr 2011 01:00:56 -0700 X-ASG-Orig-Subj: [PATCH V8 2/6] mv_i2c: fix timeout value to be consistent with comments Message-Id: <1301990460-31029-3-git-send-email-leiwen@marvell.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1301835656-20512-1-git-send-email-leiwen@marvell.com> References: <1301835656-20512-1-git-send-email-leiwen@marvell.com> X-Barracuda-Connect: maili.marvell.com[10.68.76.51] X-Barracuda-Start-Time: 1301990476 X-Barracuda-URL: http://10.68.76.222:80/cgi-mod/mark.cgi X-Barracuda-Spam-Score: -1002.00 X-Barracuda-Spam-Status: No, SCORE=-1002.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=1000.0 Subject: [U-Boot] [PATCH V8 2/6] mv_i2c: fix timeout value to be consistent with comments X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de The original 10000 value would be 100ms, which is not the comments said. Signed-off-by: Lei Wen --- V2: V3: V4: V5: V6: V7: NO CHANGE V8: seperate timeout fix patch out drivers/i2c/mv_i2c.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/i2c/mv_i2c.c b/drivers/i2c/mv_i2c.c index 09756a4..562b950 100644 --- a/drivers/i2c/mv_i2c.c +++ b/drivers/i2c/mv_i2c.c @@ -114,7 +114,7 @@ static void i2c_reset(void) static int i2c_isr_set_cleared(unsigned long set_mask, unsigned long cleared_mask) { - int timeout = 10000; + int timeout = 1000; while (((ISR & set_mask) != set_mask) || ((ISR & cleared_mask) != 0)) { udelay(10);