From patchwork Tue May 4 09:33:05 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ajay Kumar Gupta X-Patchwork-Id: 96699 X-Patchwork-Delegate: khilman@deeprootsystems.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o449XD8G025140 for ; Tue, 4 May 2010 09:33:13 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754348Ab0EDJdM (ORCPT ); Tue, 4 May 2010 05:33:12 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:54178 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751532Ab0EDJdL (ORCPT ); Tue, 4 May 2010 05:33:11 -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 o449X7fm011961 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 4 May 2010 04:33:10 -0500 Received: from psplinux050.india.ti.com (localhost [127.0.0.1]) by dbdp31.itg.ti.com (8.13.8/8.13.8) with ESMTP id o449X5jm029615; Tue, 4 May 2010 15:03:06 +0530 (IST) Received: from psplinux050.india.ti.com (localhost [127.0.0.1]) by psplinux050.india.ti.com (8.13.1/8.13.1) with ESMTP id o449X5Ho021870; Tue, 4 May 2010 15:03:05 +0530 Received: (from a0393629@localhost) by psplinux050.india.ti.com (8.13.1/8.13.1/Submit) id o449X5AK021867; Tue, 4 May 2010 15:03:05 +0530 From: Ajay Kumar Gupta To: linux-omap@vger.kernel.org Cc: khilman@deeprootsystems.com, Ajay Kumar Gupta Subject: [PATCH] OMAP3: PM: fix AM35x musb issue with AUTOIDLE bit in CONTROL_SYSCONFIG Date: Tue, 4 May 2010 15:03:05 +0530 Message-Id: <1272965585-21836-1-git-send-email-ajay.gupta@ti.com> X-Mailer: git-send-email 1.6.2.4 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 04 May 2010 09:33:14 +0000 (UTC) diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c index ea0000b..cc9d566 100644 --- a/arch/arm/mach-omap2/pm34xx.c +++ b/arch/arm/mach-omap2/pm34xx.c @@ -849,7 +849,12 @@ static void __init prcm_setup_regs(void) CM_AUTOIDLE); } - omap_ctrl_writel(OMAP3430_AUTOIDLE, OMAP2_CONTROL_SYSCONFIG); + /* + * MUSB interface on AM35x stops working when we enable AUTOIDLE, + * so avoid this for AM3517 and AM3505 device. + */ + if (!cpu_is_omap3517() && !cpu_is_omap3505()) + omap_ctrl_writel(OMAP3430_AUTOIDLE, OMAP2_CONTROL_SYSCONFIG); /* * Set all plls to autoidle. This is needed until autoidle is