linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: kgene.kim@samsung.com (Kukjin Kim)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] arm: exynos4: PM Bugfix for not waking up from suspend-to-RAM
Date: Fri, 06 May 2011 14:33:12 +0900	[thread overview]
Message-ID: <00fe01cc0baf$192b9250$4b82b6f0$%kim@samsung.com> (raw)
In-Reply-To: <1303706457-20936-1-git-send-email-myungjoo.ham@samsung.com>

MyungJoo Ham wrote:
> 
> Exynos4210 EVT1 (s5pc210-evt1) has an issue of not waking up from
> suspend-to-RAM WAKEUP_MASK register's 31'b is not cleared before
> entering a suspend. This patch clears every undocumented bits of
> WAKEUP_MASK before entering a suspend and enabled sleep/wake in the
> specified chip.
> 
> Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> ---
>  arch/arm/mach-exynos4/pm.c |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arm/mach-exynos4/pm.c b/arch/arm/mach-exynos4/pm.c
> index 10d917d..1cef195 100644
> --- a/arch/arm/mach-exynos4/pm.c
> +++ b/arch/arm/mach-exynos4/pm.c
> @@ -326,6 +326,10 @@ static void exynos4_pm_prepare(void)
>  	s3c_pm_do_save(exynos4_core_save, ARRAY_SIZE(exynos4_core_save));
>  	s3c_pm_do_save(exynos4_l2cc_save, ARRAY_SIZE(exynos4_l2cc_save));
> 
> +	/* EVT1 issues with undocumented S5P_WAKEUP_MASK bits. */
> +	tmp = __raw_readl(S5P_WAKEUP_MASK);
> +	__raw_writel(0x000fffff & tmp, S5P_WAKEUP_MASK);

Hmm, according to your above description about 31th bit, should be 'tmp &=
~(1 << 31); then write'?
Or do we _really_ need to clear other 11bits [30:20] like your comments,
every undocumented bits?

As I know, NO.

In addition, to clear 31th bit is added s3c_pm_arch_prepare_irqs() of
arch/arm/mach-exynos4/include/mach/pm-core.h and it is called before
entering suspend mode.

Thanks.

Best regards,
Kgene.
--
Kukjin Kim <kgene.kim@samsung.com>, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.

      reply	other threads:[~2011-05-06  5:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-25  4:40 [PATCH] arm: exynos4: PM Bugfix for not waking up from suspend-to-RAM MyungJoo Ham
2011-05-06  5:33 ` Kukjin Kim [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='00fe01cc0baf$192b9250$4b82b6f0$%kim@samsung.com' \
    --to=kgene.kim@samsung.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).