From patchwork Thu Sep 1 15:53:41 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anatolij Gustschin X-Patchwork-Id: 1119652 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p81Fs8nh010377 for ; Thu, 1 Sep 2011 15:54:08 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932525Ab1IAPyH (ORCPT ); Thu, 1 Sep 2011 11:54:07 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:37974 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932514Ab1IAPyH (ORCPT ); Thu, 1 Sep 2011 11:54:07 -0400 Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 88222186DEE0; Thu, 1 Sep 2011 17:54:04 +0200 (CEST) X-Auth-Info: gJuzeJkB5LofRbXJurpfleFEC88s1uMbRuo3XIv9a3c= Received: from localhost (p4FDE78BA.dip.t-dialin.net [79.222.120.186]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA id 5F9E11C001A1; Thu, 1 Sep 2011 17:54:04 +0200 (CEST) From: Anatolij Gustschin To: linux-fbdev@vger.kernel.org Cc: Florian Tobias Schandinat , Anatolij Gustschin Subject: [PATCH] video: mb862xx-i2c: fix for reliable decoder register access Date: Thu, 1 Sep 2011 17:53:41 +0200 Message-Id: <1314892421-13471-1-git-send-email-agust@denx.de> X-Mailer: git-send-email 1.7.1 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 01 Sep 2011 15:54:08 +0000 (UTC) Increase delay when polling for tx status. This fixes the unreliable video decoder i2c register access. Signed-off-by: Anatolij Gustschin --- drivers/video/mb862xx/mb862xx-i2c.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/video/mb862xx/mb862xx-i2c.c b/drivers/video/mb862xx/mb862xx-i2c.c index b953099..934081d 100644 --- a/drivers/video/mb862xx/mb862xx-i2c.c +++ b/drivers/video/mb862xx/mb862xx-i2c.c @@ -23,7 +23,7 @@ static int mb862xx_i2c_wait_event(struct i2c_adapter *adap) u32 reg; do { - udelay(1); + udelay(10); reg = inreg(i2c, GC_I2C_BCR); if (reg & (I2C_INT | I2C_BER)) break;