From patchwork Fri Aug 26 19:22:00 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 1102952 Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p7QJD5cx006255 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 26 Aug 2011 19:13:26 GMT Received: from canuck.infradead.org ([2001:4978:20e::1]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1Qx1pn-0006hF-WC; Fri, 26 Aug 2011 19:12:56 +0000 Received: from localhost ([127.0.0.1] helo=canuck.infradead.org) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Qx1pn-0005KU-HX; Fri, 26 Aug 2011 19:12:55 +0000 Received: from va3ehsobe006.messaging.microsoft.com ([216.32.180.16] helo=VA3EHSOBE007.bigfish.com) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1Qx1pj-0005KB-PX for linux-arm-kernel@lists.infradead.org; Fri, 26 Aug 2011 19:12:52 +0000 Received: from mail186-va3-R.bigfish.com (10.7.14.250) by VA3EHSOBE007.bigfish.com (10.7.40.11) with Microsoft SMTP Server id 14.1.225.22; Fri, 26 Aug 2011 19:12:50 +0000 Received: from mail186-va3 (localhost.localdomain [127.0.0.1]) by mail186-va3-R.bigfish.com (Postfix) with ESMTP id 12522B88237; Fri, 26 Aug 2011 19:12:49 +0000 (UTC) X-SpamScore: -5 X-BigFish: VS-5(z6c9Mzzz1202hzz8275bhz2dh2a8h668h839h62h) X-Spam-TCS-SCL: 1:0 X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPVD:NLI; H:mail.freescale.net; RD:none; EFVD:NLI Received: from mail186-va3 (localhost.localdomain [127.0.0.1]) by mail186-va3 (MessageSwitch) id 1314385897550028_4268; Fri, 26 Aug 2011 19:11:37 +0000 (UTC) Received: from VA3EHSMHS019.bigfish.com (unknown [10.7.14.246]) by mail186-va3.bigfish.com (Postfix) with ESMTP id BE4507D805C; Fri, 26 Aug 2011 19:11:08 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by VA3EHSMHS019.bigfish.com (10.7.99.29) with Microsoft SMTP Server (TLS) id 14.1.225.22; Fri, 26 Aug 2011 19:10:44 +0000 Received: from az33smr02.freescale.net (10.64.34.200) by 039-SN1MMR1-003.039d.mgd.msft.net (10.84.1.16) with Microsoft SMTP Server id 14.1.323.2; Fri, 26 Aug 2011 14:10:44 -0500 Received: from localhost.localdomain ([10.29.240.182]) by az33smr02.freescale.net (8.13.1/8.13.0) with ESMTP id p7QJAa0c010921; Fri, 26 Aug 2011 14:10:42 -0500 (CDT) From: Fabio Estevam To: Subject: [PATCH 5/5] ARM: mx53: Allow suspend/resume on mx53 Date: Fri, 26 Aug 2011 16:22:00 -0300 Message-ID: <1314386521-29351-4-git-send-email-fabio.estevam@freescale.com> X-Mailer: git-send-email 1.6.0.4 In-Reply-To: <1314386521-29351-3-git-send-email-fabio.estevam@freescale.com> References: <1314386521-29351-1-git-send-email-fabio.estevam@freescale.com> <1314386521-29351-2-git-send-email-fabio.estevam@freescale.com> <1314386521-29351-3-git-send-email-fabio.estevam@freescale.com> MIME-Version: 1.0 X-OriginatorOrg: freescale.com X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20110826_151251_954365_12E25075 X-CRM114-Status: GOOD ( 18.15 ) X-Spam-Score: -2.3 (--) X-Spam-Report: SpamAssassin version 3.3.1 on canuck.infradead.org summary: Content analysis details: (-2.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [216.32.180.16 listed in list.dnswl.org] Cc: Fabio Estevam , kernel@pengutronix.de X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Fri, 26 Aug 2011 19:13:26 +0000 (UTC) Signed-off-by: Fabio Estevam --- This is still work in progress, as I can still not fully get access to the console after a suspend/resume cycle on my mx53loco. Freezing user space processes ... (elapsed 0.01 seconds) done. Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done. PM: suspend of devices complete after 0.635 msecs PM: suspend devices took 0.000 seconds (Press the button here:) PM: late suspend of devices complete after 0.418 msecs and console does not come back after this message. arch/arm/mach-mx5/pm-imx5.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-mx5/pm-imx5.c b/arch/arm/mach-mx5/pm-imx5.c index e4529af..a9bac88 100644 --- a/arch/arm/mach-mx5/pm-imx5.c +++ b/arch/arm/mach-mx5/pm-imx5.c @@ -63,7 +63,7 @@ static int __init mx5_pm_init(void) gpc_dvfs_clk = clk_get(NULL, "gpc_dvfs"); if (!IS_ERR(gpc_dvfs_clk)) { - if (cpu_is_mx51()) + if (cpu_is_mx51() || cpu_is_mx53()) suspend_set_ops(&mx5_suspend_ops); } else return -EPERM;