From patchwork Fri Apr 11 10:40:02 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 3967541 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 3B3A49F336 for ; Fri, 11 Apr 2014 10:40:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 608D3207F3 for ; Fri, 11 Apr 2014 10:40:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 88D93207EF for ; Fri, 11 Apr 2014 10:40:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757191AbaDKKkM (ORCPT ); Fri, 11 Apr 2014 06:40:12 -0400 Received: from mail-wg0-f47.google.com ([74.125.82.47]:37210 "EHLO mail-wg0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756632AbaDKKkH (ORCPT ); Fri, 11 Apr 2014 06:40:07 -0400 Received: by mail-wg0-f47.google.com with SMTP id x12so5151900wgg.18 for ; Fri, 11 Apr 2014 03:40:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=0WSpubYFRiCXab9g7PkxqBocrW8dit/Lg3HkqNqVmTo=; b=VA/x1laaGWNJN3j8sdbsQxWW36ECrcMO42eLcjaE4KgYUzMv3Re/fuE4uapvKlrcoa eyzG5tVZT3VDScaFl+3wRQOnsxEh8ZNwv3YYHd4J8RfZigZ+Zo0uFz5+5BJBpMH2fLzp j107Cvj0LQ9+CVy5MfcWuCULlX1sSWXYYUvFskqjWac1JcIv36zMN21LI5UHkwV0WrIn TIbWi496gXs3MBRcnOBOxIzx8GFZRHVxEwFCyMjUffqNq+U9wu8LxwoAVB5ueNyJ58rv XkEt9P91szdRdskJlVcrhWvgWNtOmNlmHPnRIt11mjXxNmnzKdALdYVKxvtZkdXw28Jt AoTw== X-Gm-Message-State: ALoCoQk3fftcrQftIlgH1IaRSgbtcK0xhPycVJUVkmLqAXdgXP29jHHFKRM9b1WEhm3mMttMUfDF X-Received: by 10.180.8.40 with SMTP id o8mr2818777wia.25.1397212806028; Fri, 11 Apr 2014 03:40:06 -0700 (PDT) Received: from localhost.localdomain (AToulouse-654-1-377-242.w86-199.abo.wanadoo.fr. [86.199.232.242]) by mx.google.com with ESMTPSA id eq8sm3683033wib.16.2014.04.11.03.40.04 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 11 Apr 2014 03:40:05 -0700 (PDT) From: Daniel Lezcano To: kgene.kim@samsung.com Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, t.figa@samsung.com, linaro-kernel@lists.linaro.org, rjw@rjwysocki.net Subject: [PATCH V5 07/20] ARM: exynos: cpuidle: Fix S5P_WAKEUP_STAT call Date: Fri, 11 Apr 2014 12:40:02 +0200 Message-Id: <1397212815-16068-8-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1397212815-16068-1-git-send-email-daniel.lezcano@linaro.org> References: <1397212815-16068-1-git-send-email-daniel.lezcano@linaro.org> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 This function should be called only when the powerdown sequence fails. Even if the current code does not hurt, by moving this line, we have the same code than the one in pm.c. Signed-off-by: Daniel Lezcano Reviewed-by: Viresh Kumar Reviewed-by: Bartlomiej Zolnierkiewicz Reviewed-by: Tomasz Figa --- arch/arm/mach-exynos/cpuidle.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-exynos/cpuidle.c b/arch/arm/mach-exynos/cpuidle.c index 4d8bcfd..346c2d0 100644 --- a/arch/arm/mach-exynos/cpuidle.c +++ b/arch/arm/mach-exynos/cpuidle.c @@ -115,11 +115,10 @@ static int exynos_enter_core0_aftr(struct cpuidle_device *dev, if (!(tmp & S5P_CENTRAL_LOWPWR_CFG)) { tmp |= S5P_CENTRAL_LOWPWR_CFG; __raw_writel(tmp, S5P_CENTRAL_SEQ_CONFIGURATION); + /* Clear wakeup state register */ + __raw_writel(0x0, S5P_WAKEUP_STAT); } - /* Clear wakeup state register */ - __raw_writel(0x0, S5P_WAKEUP_STAT); - return index; }