From patchwork Fri Apr 4 07:47:52 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 27775 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f70.google.com (mail-oa0-f70.google.com [209.85.219.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5C5AA20369 for ; Fri, 4 Apr 2014 07:48:00 +0000 (UTC) Received: by mail-oa0-f70.google.com with SMTP id n16sf9909510oag.5 for ; Fri, 04 Apr 2014 00:47:59 -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=xRe1/J7TIPDE0PlVeBdMcaq2eOc0qBtrgTkKhFrB0uI=; b=GuufvhgZ2KT11yEPYz+FR1PZMyU5+mSOtthrg7cDncB2OsOPw9QEI5KI2MF1W8vjm3 txsmKHppeCLf0OE/aIgdYFEwhDy/pFvBTTuY+AuAm6vEl7tfAnE2Xnu7uZdm7RatDmCC 4PqV8CGhr/LRgKwQWpwz+RyXayxnXba61a/+CwgYEm6X4NpLj1d2sT2TLpK4m0USBrKE yxuuLThsNnjyEdOpRN3fujYlIQ5+Z/C2sMbyZAwn4mh4usS+HDmUa3vhCPZPYVoLPJE4 fV48EYQLafmRL79ah36nD1fP5T3WFfp68Rugf4xIZHgHvDbgukVGto8tymLFmVao/xuf a9Fw== X-Gm-Message-State: ALoCoQlVvavbWTWV1Yc1hIokIFn95AF5Umer7OE+GpK7ipdKjlAzc4Cl1jpvAlTmrgBgtWhFv1SI X-Received: by 10.42.146.199 with SMTP id k7mr6689354icv.24.1396597679905; Fri, 04 Apr 2014 00:47:59 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.39.133 with SMTP id v5ls913094qgv.23.gmail; Fri, 04 Apr 2014 00:47:59 -0700 (PDT) X-Received: by 10.58.154.10 with SMTP id vk10mr3934396veb.18.1396597679824; Fri, 04 Apr 2014 00:47:59 -0700 (PDT) Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com [209.85.220.181]) by mx.google.com with ESMTPS id tq2si1665745vdc.57.2014.04.04.00.47.59 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 04 Apr 2014 00:47:59 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.181 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.181; Received: by mail-vc0-f181.google.com with SMTP id id10so2895890vcb.12 for ; Fri, 04 Apr 2014 00:47:59 -0700 (PDT) X-Received: by 10.220.133.80 with SMTP id e16mr7028339vct.13.1396597679748; Fri, 04 Apr 2014 00:47:59 -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 v8csp92804vcv; Fri, 4 Apr 2014 00:47:59 -0700 (PDT) X-Received: by 10.68.254.5 with SMTP id ae5mr12986401pbd.83.1396597678990; Fri, 04 Apr 2014 00:47:58 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id iw3si4270530pac.96.2014.04.04.00.47.58; Fri, 04 Apr 2014 00:47:58 -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 S1752122AbaDDHr5 (ORCPT + 9 others); Fri, 4 Apr 2014 03:47:57 -0400 Received: from mail-wi0-f174.google.com ([209.85.212.174]:33907 "EHLO mail-wi0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752101AbaDDHr4 (ORCPT ); Fri, 4 Apr 2014 03:47:56 -0400 Received: by mail-wi0-f174.google.com with SMTP id d1so691047wiv.7 for ; Fri, 04 Apr 2014 00:47:55 -0700 (PDT) X-Received: by 10.180.189.139 with SMTP id gi11mr2112504wic.53.1396597675407; Fri, 04 Apr 2014 00:47:55 -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 t1sm3028163wia.1.2014.04.04.00.47.54 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 04 Apr 2014 00:47:54 -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 06/17] ARM: exynos: cpuidle: Fix S5P_WAKEUP_STAT call Date: Fri, 4 Apr 2014 09:47:52 +0200 Message-Id: <1396597683-6969-7-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1396597683-6969-1-git-send-email-daniel.lezcano@linaro.org> References: <1396597683-6969-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.181 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 --- 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 9cd1ed9..a1e1882 100644 --- a/arch/arm/mach-exynos/cpuidle.c +++ b/arch/arm/mach-exynos/cpuidle.c @@ -135,11 +135,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; }