From patchwork Fri Apr 4 13:42:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 27823 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f71.google.com (mail-oa0-f71.google.com [209.85.219.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3063220369 for ; Fri, 4 Apr 2014 13:43:08 +0000 (UTC) Received: by mail-oa0-f71.google.com with SMTP id j17sf10890411oag.2 for ; Fri, 04 Apr 2014 06:43:07 -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=OnG64Z4fWTQLtbvEYlFBkruQQkPicCBWZziPI2SFMYg=; b=mtj4OUTiBpgpQgDMUJhKPLb5ikcU6D6zx808IWiJWBgOUZnHSkrsVvigt1c3FkcbYh 7akrLQQ4H+pH3CgO6nEhxs9ldUvch6ZR3l+/xnOACvLLxr7bPi+6EwBk/fLbSewR+tZL ACoAqrE3R5SSc4a/7tcRJV1RBWPhiVtYjPqSnTYjagiHoY13vxATvZKsdtks3Ql7HfRP Jb3R2yYtqk+XCMWluARSE1M2cYWhs4pnixwQhmT3KGHXKavWsOiDyeRB2oCMgRypqNlQ /icVO3U+tqzkTH4944mqrRAepr1r98LcK7G7ocOu2cxbC1tr3uhhldTgfHdAp4nhzsZP xbLg== X-Gm-Message-State: ALoCoQlJEX0uIENXo90NONdcpsBODTmQPe1/PZ1LpYsWnps+5RG++oWMkrxzgsyinnweQDQTlQBd X-Received: by 10.50.50.2 with SMTP id y2mr2046397ign.1.1396618987657; Fri, 04 Apr 2014 06:43:07 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.23.234 with SMTP id 97ls1074764qgp.68.gmail; Fri, 04 Apr 2014 06:43:07 -0700 (PDT) X-Received: by 10.58.248.5 with SMTP id yi5mr133018vec.42.1396618987538; Fri, 04 Apr 2014 06:43:07 -0700 (PDT) Received: from mail-ve0-f176.google.com (mail-ve0-f176.google.com [209.85.128.176]) by mx.google.com with ESMTPS id uq15si772952veb.32.2014.04.04.06.43.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 04 Apr 2014 06:43:07 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.176 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.176; Received: by mail-ve0-f176.google.com with SMTP id db11so1413563veb.7 for ; Fri, 04 Apr 2014 06:43:07 -0700 (PDT) X-Received: by 10.52.119.178 with SMTP id kv18mr139199vdb.39.1396618987207; Fri, 04 Apr 2014 06:43:07 -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 v8csp115325vcv; Fri, 4 Apr 2014 06:43:06 -0700 (PDT) X-Received: by 10.66.141.144 with SMTP id ro16mr14923798pab.131.1396618985469; Fri, 04 Apr 2014 06:43:05 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id tk5si4616090pbc.252.2014.04.04.06.43.04; Fri, 04 Apr 2014 06:43:04 -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 S1752384AbaDDNnE (ORCPT + 9 others); Fri, 4 Apr 2014 09:43:04 -0400 Received: from mail-wi0-f175.google.com ([209.85.212.175]:57418 "EHLO mail-wi0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752774AbaDDNnD (ORCPT ); Fri, 4 Apr 2014 09:43:03 -0400 Received: by mail-wi0-f175.google.com with SMTP id cc10so1294440wib.14 for ; Fri, 04 Apr 2014 06:43:02 -0700 (PDT) X-Received: by 10.180.37.12 with SMTP id u12mr4838710wij.0.1396618982541; Fri, 04 Apr 2014 06:43:02 -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 cu6sm2845053wjb.8.2014.04.04.06.43.01 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 04 Apr 2014 06:43:01 -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 V2 06/17] ARM: exynos: cpuidle: Fix S5P_WAKEUP_STAT call Date: Fri, 4 Apr 2014 15:42:58 +0200 Message-Id: <1396618989-2897-7-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1396618989-2897-1-git-send-email-daniel.lezcano@linaro.org> References: <1396618989-2897-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.176 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; }