From patchwork Tue Apr 8 12:19:28 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 27942 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f198.google.com (mail-qc0-f198.google.com [209.85.216.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A03B32066E for ; Tue, 8 Apr 2014 12:19:42 +0000 (UTC) Received: by mail-qc0-f198.google.com with SMTP id r5sf2273858qcx.9 for ; Tue, 08 Apr 2014 05:19:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=O+J7HwpIuixrDMhEdx7V2M98ynGfuOr8exYc/MDV3cw=; b=civ2cbCOnkxz41paQzixs9tABJMBbXEXWa/d1ozq16gDZHd2uUE2MXgw8NEZJFBfOz fFmvi4j9CeIVDtdvjTy7HknN431M/yMrpLHzOjLrxJKzwqjwkDa/Z3tXM4d/ShoXRj62 ec1DxBs7p1kx4OqleiQhA9fIGQkYkwBaFq5U99WCtQw4kbSXUGfpncVKXltdvIPrNUMz M24eofjs0NI4XgsQQJvWyt7kYEjr27DaV0F+MstoW4ucTwOxquv/TlZd0tP3WW/Xh84k jQwqWfc4qGNF4DzrzEK38FnwP+pVXZ0I19z/lffv7vV/yShyXpY09ZTRCk5wNHLIX7ms MUDg== X-Gm-Message-State: ALoCoQldziokkxK+c+o+0EV0/mJMq0Ku++ReISMA1B2mQ1XYCEkd6VF6YkRoaz575vpHcatAdLKU X-Received: by 10.58.195.202 with SMTP id ig10mr1673680vec.38.1396959582233; Tue, 08 Apr 2014 05:19:42 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.98.68 with SMTP id n62ls177026qge.28.gmail; Tue, 08 Apr 2014 05:19:42 -0700 (PDT) X-Received: by 10.221.20.199 with SMTP id qp7mr1357843vcb.24.1396959582039; Tue, 08 Apr 2014 05:19:42 -0700 (PDT) Received: from mail-ve0-f170.google.com (mail-ve0-f170.google.com [209.85.128.170]) by mx.google.com with ESMTPS id ph6si357170veb.107.2014.04.08.05.19.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 08 Apr 2014 05:19:42 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.170 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.170; Received: by mail-ve0-f170.google.com with SMTP id pa12so706342veb.1 for ; Tue, 08 Apr 2014 05:19:42 -0700 (PDT) X-Received: by 10.221.55.133 with SMTP id vy5mr2971668vcb.17.1396959581940; Tue, 08 Apr 2014 05:19:41 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.12.8 with SMTP id v8csp240627vcv; Tue, 8 Apr 2014 05:19:41 -0700 (PDT) X-Received: by 10.68.178.162 with SMTP id cz2mr4145992pbc.51.1396959581120; Tue, 08 Apr 2014 05:19:41 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id tx1si993786pbc.150.2014.04.08.05.19.40; Tue, 08 Apr 2014 05:19:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756637AbaDHMTi (ORCPT + 9 others); Tue, 8 Apr 2014 08:19:38 -0400 Received: from mail-wi0-f178.google.com ([209.85.212.178]:32924 "EHLO mail-wi0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756533AbaDHMTf (ORCPT ); Tue, 8 Apr 2014 08:19:35 -0400 Received: by mail-wi0-f178.google.com with SMTP id bs8so1221086wib.17 for ; Tue, 08 Apr 2014 05:19:34 -0700 (PDT) X-Received: by 10.180.13.8 with SMTP id d8mr4218192wic.13.1396959574784; Tue, 08 Apr 2014 05:19:34 -0700 (PDT) Received: from localhost.localdomain (AToulouse-654-1-451-172.w83-205.abo.wanadoo.fr. [83.205.74.172]) by mx.google.com with ESMTPSA id u1sm3000063wjx.16.2014.04.08.05.19.33 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 08 Apr 2014 05:19:34 -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, b.zolnierkie@samsung.com, sachin.kamat@linaro.org, viresh.kumar@linaro.org, rjw@rjwysocki.net Subject: [PATCH V3 06/17] ARM: exynos: cpuidle: Fix S5P_WAKEUP_STAT call Date: Tue, 8 Apr 2014 14:19:28 +0200 Message-Id: <1396959579-18268-7-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1396959579-18268-1-git-send-email-daniel.lezcano@linaro.org> References: <1396959579-18268-1-git-send-email-daniel.lezcano@linaro.org> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: daniel.lezcano@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.170 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 --- 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 cdfb1ae..6663349 100644 --- a/arch/arm/mach-exynos/cpuidle.c +++ b/arch/arm/mach-exynos/cpuidle.c @@ -134,11 +134,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; }