Message ID | 1419329374-4372-1-git-send-email-dbaryshkov@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id BDC3BBEEA8 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 23 Dec 2014 10:19:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E22FB20121 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 23 Dec 2014 10:19:41 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0C54020120 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 23 Dec 2014 10:19:41 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Y3MWQ-0003FP-Nm; Tue, 23 Dec 2014 10:16:58 +0000 Received: from mail-pa0-x231.google.com ([2607:f8b0:400e:c03::231]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Y3MPj-0003x6-I6 for linux-arm-kernel@lists.infradead.org; Tue, 23 Dec 2014 10:10:04 +0000 Received: by mail-pa0-f49.google.com with SMTP id eu11so7590696pac.22 for <linux-arm-kernel@lists.infradead.org>; Tue, 23 Dec 2014 02:09:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=nxq0VvQVNaFluExdjqjPoh6uMBGrwC2XIJgGIRkUvns=; b=gXy4BibeiJxCLpz86du7Hu4kZNNa7XrSEMlTmDdMrRmQ8/aj1AI8KVeb3l79hLvDfV Fpb9YcOHYHIal7eHLAJ7+DXNj5gBitO0YrX6WcB1xYp/TMjNiViUolwMVKDpnESklyR+ ohx5Fk1pjIoN02QCrOD3qoA1zZV+Nc/+6K1EA/X+76yih9Wq4opeH497h7CvWK3dAjY5 6lafTkDRT+Qf56a3XaambEU7etkTmAXr/zqciGUO2/1Yy3P9zw5XZcKTGQgKNeWIUzzq RZJCLOA4pGqpL7c3nI0BkpUWsJk9lS9E4ixfdBFkhnUwPgGgTPsvftiTFJvLRMBq/n6H BzMw== X-Received: by 10.67.29.193 with SMTP id jy1mr17269625pad.151.1419329381717; Tue, 23 Dec 2014 02:09:41 -0800 (PST) Received: from fangorn.rup.mentorg.com (nat-min.mentorg.com. [139.181.32.34]) by mx.google.com with ESMTPSA id xy3sm19531810pbb.38.2014.12.23.02.09.39 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 23 Dec 2014 02:09:41 -0800 (PST) From: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> To: Russell King <linux@arm.linux.org.uk> Subject: [PATCH] ARM: sa1100: clear RCSR_SMR on resume Date: Tue, 23 Dec 2014 13:09:34 +0300 Message-Id: <1419329374-4372-1-git-send-email-dbaryshkov@gmail.com> X-Mailer: git-send-email 2.1.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141223_021003_705317_1F92B717 X-CRM114-Status: GOOD ( 10.38 ) X-Spam-Score: -0.8 (/) Cc: stable@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/arch/arm/mach-sa1100/pm.c b/arch/arm/mach-sa1100/pm.c index 6645d1e..34853d5 100644 --- a/arch/arm/mach-sa1100/pm.c +++ b/arch/arm/mach-sa1100/pm.c @@ -81,6 +81,7 @@ static int sa11x0_pm_enter(suspend_state_t state) /* * Ensure not to come back here if it wasn't intended */ + RCSR = RCSR_SMR; PSPR = 0; /*
StrongARM core uses RCSR SMR bit to tell to bootloader that it was reset by entering the sleep mode. After we have resumed, there is little point in having that bit enabled. Moreover, if this bit is set before reboot, the bootloader can become confused. Thus clear the SMR bit on resume just before clearing the scratchpad (resume address) register. Cc: stable@vger.kernel.org Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> --- arch/arm/mach-sa1100/pm.c | 1 + 1 file changed, 1 insertion(+)