From patchwork Thu Apr 10 09:55:37 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 28138 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f200.google.com (mail-ie0-f200.google.com [209.85.223.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E934220671 for ; Thu, 10 Apr 2014 09:55:59 +0000 (UTC) Received: by mail-ie0-f200.google.com with SMTP id lx4sf17099483iec.7 for ; Thu, 10 Apr 2014 02:55: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=rRL9/Chc1k2oPo7//ZiQmuSJPoSGQ2mNF3CsL/9at9Q=; b=bKpyX047/unOCmxj4NlCnaaIzpvKzXF8PT1wElg0QeTYb8UKAhT1RMM2hSBOf1hNdx 0He5soOprwENO1h0ShVb+Ja6JwY8xKOW50Dl01jJlUvHQJia91id81VEh3vZfRK+mHUp +cdFM/pCWbbAMmd97GsPjtoYW75xHqSt9esRfl67/1xpt1UIzbiwRwiSodNFS6R6UpTO vurHrIoJpODj5At59ynoWSpgn+VG34eHm16v4UPERDlF72hmcygNZxqhHn70wxFQr8eT IaOrnCfVHy41L9ku3gXyhrsIAynOeRbqPGFMmBSO3mhJfPvizpvSHN8hY5QeTG2AoqSC 0gSw== X-Gm-Message-State: ALoCoQksizal0iANsd2t8+g2b+AepoOeZNGyUzsXjstQIOmCXflZzmcUK6+cd7DX+4GGZPsy75Ai X-Received: by 10.42.185.1 with SMTP id cm1mr7149994icb.10.1397123759283; Thu, 10 Apr 2014 02:55:59 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.86.170 with SMTP id p39ls1082927qgd.49.gmail; Thu, 10 Apr 2014 02:55:59 -0700 (PDT) X-Received: by 10.52.173.165 with SMTP id bl5mr11269243vdc.13.1397123759145; Thu, 10 Apr 2014 02:55:59 -0700 (PDT) Received: from mail-ve0-f181.google.com (mail-ve0-f181.google.com [209.85.128.181]) by mx.google.com with ESMTPS id tm8si608579vdc.44.2014.04.10.02.55.59 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 10 Apr 2014 02:55:59 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.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.128.181; Received: by mail-ve0-f181.google.com with SMTP id oy12so3285485veb.12 for ; Thu, 10 Apr 2014 02:55:59 -0700 (PDT) X-Received: by 10.58.122.164 with SMTP id lt4mr13624973veb.2.1397123759069; Thu, 10 Apr 2014 02:55: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.221.72 with SMTP id ib8csp45032vcb; Thu, 10 Apr 2014 02:55:58 -0700 (PDT) X-Received: by 10.68.136.133 with SMTP id qa5mr18377573pbb.63.1397123758240; Thu, 10 Apr 2014 02:55:58 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xe4si1873677pbc.456.2014.04.10.02.55.57; Thu, 10 Apr 2014 02:55:57 -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 S965609AbaDJJzy (ORCPT + 9 others); Thu, 10 Apr 2014 05:55:54 -0400 Received: from mail-we0-f181.google.com ([74.125.82.181]:35541 "EHLO mail-we0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965541AbaDJJzm (ORCPT ); Thu, 10 Apr 2014 05:55:42 -0400 Received: by mail-we0-f181.google.com with SMTP id q58so3605767wes.26 for ; Thu, 10 Apr 2014 02:55:41 -0700 (PDT) X-Received: by 10.194.202.166 with SMTP id kj6mr2287979wjc.48.1397123741356; Thu, 10 Apr 2014 02:55:41 -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 hu7sm15690125wib.10.2014.04.10.02.55.40 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 10 Apr 2014 02:55:40 -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 V4 06/20] ARM: exynos: cpuidle: Fix S5P_WAKEUP_STAT call Date: Thu, 10 Apr 2014 11:55:37 +0200 Message-Id: <1397123751-1957-7-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1397123751-1957-1-git-send-email-daniel.lezcano@linaro.org> References: <1397123751-1957-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.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 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 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; }