From patchwork Thu Aug 20 16:21:16 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sonasath, Moiz" X-Patchwork-Id: 42965 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n7KGGXab008345 for ; Thu, 20 Aug 2009 16:16:33 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754494AbZHTQQ2 (ORCPT ); Thu, 20 Aug 2009 12:16:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754815AbZHTQQ2 (ORCPT ); Thu, 20 Aug 2009 12:16:28 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:53361 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754596AbZHTQQ1 (ORCPT ); Thu, 20 Aug 2009 12:16:27 -0400 Received: from dlep34.itg.ti.com ([157.170.170.115]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id n7KGGIbK004234; Thu, 20 Aug 2009 11:16:23 -0500 Received: from legion.dal.design.ti.com (localhost [127.0.0.1]) by dlep34.itg.ti.com (8.13.7/8.13.7) with ESMTP id n7KGGIHk015327; Thu, 20 Aug 2009 11:16:18 -0500 (CDT) Received: from lina0132712 (lina0132712.am.dhcp.ti.com [128.247.79.146]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id n7KGGHZ05757; Thu, 20 Aug 2009 11:16:17 -0500 (CDT) Received: by lina0132712 (Postfix, from userid 1000) id 38E069D1AE; Thu, 20 Aug 2009 11:21:17 -0500 (CDT) From: Moiz Sonasath To: linux-i2c@vger.kernel.org Cc: linux-omap@vger.kernel.org, ben-linux@fluff.org, Moiz Sonasath Subject: [PATCH 3/3] i2c-omap: Enable workaround for Errata 1.153 based on Date: Thu, 20 Aug 2009 11:21:16 -0500 Message-Id: <1250785276-31713-4-git-send-email-m-sonasath@ti.com> X-Mailer: git-send-email 1.5.6.3 In-Reply-To: <1250785276-31713-3-git-send-email-m-sonasath@ti.com> References: <1250785276-31713-1-git-send-email-m-sonasath@ti.com> <1250785276-31713-2-git-send-email-m-sonasath@ti.com> <1250785276-31713-3-git-send-email-m-sonasath@ti.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Silicon Errata 1.153 has been fixed on OMAP 3630|4430 with the use of a later version of I2C IP block. The errata impacts OMAP 2420|2430|3430, enable the workaround for these based on I2C IP block revision number instead of OMAP CPU type Signed-off-by: Moiz Sonasath Signed-off-by: Vikram Pandita --- drivers/i2c/busses/i2c-omap.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index 16b39f4..827da08 100644 --- a/drivers/i2c/busses/i2c-omap.c +++ b/drivers/i2c/busses/i2c-omap.c @@ -784,7 +784,7 @@ complete: * memory to the I2C interface. */ - if (cpu_is_omap34xx()) { + if (dev->rev <= OMAP_I2C_REV_ON_3430) { while (!(stat & OMAP_I2C_STAT_XUDF)) { if (stat & (OMAP_I2C_STAT_NACK | OMAP_I2C_STAT_AL)) { omap_i2c_ack_stat(dev, stat & (OMAP_I2C_STAT_XRDY | OMAP_I2C_STAT_XDR));