From patchwork Mon Aug 17 22:45:46 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sonasath, Moiz" X-Patchwork-Id: 42187 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 n7HMfME5013263 for ; Mon, 17 Aug 2009 22:41:22 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758235AbZHQWk6 (ORCPT ); Mon, 17 Aug 2009 18:40:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758260AbZHQWk6 (ORCPT ); Mon, 17 Aug 2009 18:40:58 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:50753 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758270AbZHQWk5 (ORCPT ); Mon, 17 Aug 2009 18:40:57 -0400 Received: from dlep36.itg.ti.com ([157.170.170.91]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id n7HMesWS021254 for ; Mon, 17 Aug 2009 17:40:59 -0500 Received: from legion.dal.design.ti.com (localhost [127.0.0.1]) by dlep36.itg.ti.com (8.13.8/8.13.8) with ESMTP id n7HMer7o015932; Mon, 17 Aug 2009 17:40:53 -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 n7HMerZ00932; Mon, 17 Aug 2009 17:40:53 -0500 (CDT) Received: by lina0132712 (Postfix, from userid 1000) id 248CA9D193; Mon, 17 Aug 2009 17:45:47 -0500 (CDT) From: Moiz Sonasath To: linux-omap@vger.kernel.org Cc: Moiz Sonasath Subject: [PATCH 3/3] i2c-omap: Enable workaround for Errata 1.153 based on Date: Mon, 17 Aug 2009 17:45:46 -0500 Message-Id: <1250549146-18362-4-git-send-email-m-sonasath@ti.com> X-Mailer: git-send-email 1.5.6.3 In-Reply-To: <1250549146-18362-3-git-send-email-m-sonasath@ti.com> References: <1250549146-18362-1-git-send-email-m-sonasath@ti.com> <1250549146-18362-2-git-send-email-m-sonasath@ti.com> <1250549146-18362-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));