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: 28258 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f198.google.com (mail-pd0-f198.google.com [209.85.192.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3C76720822 for ; Fri, 11 Apr 2014 10:40:20 +0000 (UTC) Received: by mail-pd0-f198.google.com with SMTP id fp1sf15539414pdb.5 for ; Fri, 11 Apr 2014 03:40:19 -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=aHnbohz6WEdLtFx9p7E3icel8BAc461GyG0c/5UpHIM=; b=PiiGhZDTzjQYkIPnGMiAFU3VDJPkt+KpE60Af1DQOAPOMxrwlj8MEWMWMqZLgpS/Nq n08SFQrxG9vMqoTx81H8NioSXS5LuADq/owu/p1DrxK5e+s+JMe8U+Cf24VjJ0i8GLLo 1e70Kc56weI5d0A4cxeW4b5YmHYoLo/CPROx6shlRJ9aX37AI8ikVWRfpv+hqDLsdOdR Tua64WMD20BNTsvFjIzlH3mPA14Jh0Q9m61SF9ppntuyLn8n4oxQr2hAwJW1EQ9cJ8jR lYZdwCFsTg8Uxg5IMa0HnAtwIRiif82G+HY95PH+dg+RWwA81zpNbpRJvLx9VxcBeb8w +6NQ== X-Gm-Message-State: ALoCoQlocOUELgSa/4hj6tRUBGX2GB0rELyFr2ogRm3EkG4OKYaj7/MSOYC0UhsB45tH18QtQqJr X-Received: by 10.66.144.228 with SMTP id sp4mr10793427pab.5.1397212819451; Fri, 11 Apr 2014 03:40:19 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.49.179 with SMTP id q48ls1532967qga.21.gmail; Fri, 11 Apr 2014 03:40:19 -0700 (PDT) X-Received: by 10.52.51.197 with SMTP id m5mr16326091vdo.9.1397212819301; Fri, 11 Apr 2014 03:40:19 -0700 (PDT) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id oo7si1229105vcb.22.2014.04.11.03.40.19 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 11 Apr 2014 03:40:19 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.169; Received: by mail-vc0-f169.google.com with SMTP id ik5so4619746vcb.14 for ; Fri, 11 Apr 2014 03:40:19 -0700 (PDT) X-Received: by 10.52.6.162 with SMTP id c2mr16150762vda.6.1397212819222; Fri, 11 Apr 2014 03:40:19 -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.221.72 with SMTP id ib8csp46114vcb; Fri, 11 Apr 2014 03:40:18 -0700 (PDT) X-Received: by 10.66.226.145 with SMTP id rs17mr26508677pac.144.1397212818280; Fri, 11 Apr 2014 03:40:18 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xy8si3963775pab.160.2014.04.11.03.40.17; Fri, 11 Apr 2014 03:40:17 -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 S1757191AbaDKKkM (ORCPT + 8 others); 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-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: 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.220.169 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 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; }