From patchwork Mon Oct 5 11:22:41 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: y@india.ti.com X-Patchwork-Id: 51726 X-Patchwork-Delegate: khilman@deeprootsystems.com 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 n95BQWvB017997 for ; Mon, 5 Oct 2009 11:26:32 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758751AbZJELXW (ORCPT ); Mon, 5 Oct 2009 07:23:22 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758742AbZJELXW (ORCPT ); Mon, 5 Oct 2009 07:23:22 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:42107 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753401AbZJELXW (ORCPT ); Mon, 5 Oct 2009 07:23:22 -0400 Received: from dbdp31.itg.ti.com ([172.24.170.98]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id n95BMgJi003807 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 5 Oct 2009 06:22:45 -0500 Received: from linfarm476.india.ti.com (localhost [127.0.0.1]) by dbdp31.itg.ti.com (8.13.8/8.13.8) with ESMTP id n95BMfkn005679; Mon, 5 Oct 2009 16:52:41 +0530 (IST) Received: from linfarm476.india.ti.com (localhost [127.0.0.1]) by linfarm476.india.ti.com (8.12.11/8.12.11) with ESMTP id n95BMf5A031622; Mon, 5 Oct 2009 16:52:41 +0530 Received: (from a0393946@localhost) by linfarm476.india.ti.com (8.12.11/8.12.11/Submit) id n95BMf7a031620; Mon, 5 Oct 2009 16:52:41 +0530 From: y@india.ti.com To: linux-omap@vger.kernel.org Cc: Shweta Gulati Subject: [PATCH] OMAP3: PM: Fix for Silicon bug on Context Restore on OMAP3430 Date: Mon, 5 Oct 2009 16:52:41 +0530 Message-Id: <1254741761-31546-1-git-send-email-y> X-Mailer: git-send-email 1.5.5 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c index a9eda25..38f4781 100644 --- a/arch/arm/mach-omap2/pm34xx.c +++ b/arch/arm/mach-omap2/pm34xx.c @@ -140,6 +140,12 @@ static void omap3_core_save_context(void) omap_ctrl_readl(OMAP343X_CONTROL_PADCONF_OFF); control_padconf_off |= START_PADCONF_SAVE; omap_ctrl_writel(control_padconf_off, OMAP343X_CONTROL_PADCONF_OFF); + /* Due to Silicon Bug on context restore it is found + * that the CONTROL_PAD_CONF_ETK14 register is not saved into + * scratch pad memory sometimes. To rectify it delay acess by Mpu + * for 300us for scm to finish saving task + */ + udelay(300); /* wait for the save to complete */ while (!omap_ctrl_readl(OMAP343X_CONTROL_GENERAL_PURPOSE_STATUS) & PADCONF_SAVE_DONE)