From: Andreas Friedrich <afrie@gmx.net>
To: rabin.vincent@stericsson.com
Cc: john.stultz@linaro.org, gregkh@suse.de, torvalds@osdl.org,
Wolfgang Erig <Wolfgang.Erig@ts.fujitsu.com>,
linux-kernel@vger.kernel.org
Subject: Re: REGRESSION 3.2-rcX: RTC auto poweron after 5 minutes
Date: Tue, 27 Dec 2011 11:57:08 +0100 [thread overview]
Message-ID: <20111227105708.GA29960@upset.ux.pdb.fsc.net> (raw)
In-Reply-To: <20111226145841.GA26578@upset.ux.pdb.fsc.net>
On Mo, Dez 26, 2011 at 03:58:41 +0100, Andreas Friedrich wrote:
Hello Rabin,
...
> After shuting down my system (init 0), it powers on automatically
> after 300 seconds!
>
> I've detected this problem the first time with the stable kernel 3.1.5.
> Bisecting leads me to the following patch:
>
> "rtc: Disable the alarm in the hardware"
> Stable 3.1.5: 0cbc008c56f7b4a11ba6fe80e196d7ab322baabf
> Mainline 3.2-rcX: c0afabd3d553c521e003779c127143ffde55a16f
...
the 5 minutes auto-poweron problem was caused by the new function
drivers/rtc/interface.c -> rtc_alarm_disable():
...
alarm.time = rtc_ktime_to_tm(ktime_add(rtc_tm_to_ktime(tm),
ktime_set(300, 0)));
alarm.enabled = 0;
...
In this function the RTC alarm shall be disabled. Why do you set up a
5 minutes interval just before disabling the alarm?
I have changed
ktime_set(300, 0)));
to
ktime_set(0, 0)));
and all worked fine with my notebook.
Please check if this could be a common solution of the problem.
With best regards,
Andreas Friedrich
next prev parent reply other threads:[~2011-12-27 10:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-26 14:58 Andreas Friedrich
2011-12-27 10:57 ` Andreas Friedrich [this message]
2011-12-27 14:37 ` Rabin Vincent
2012-01-02 23:10 ` Andreas Friedrich
2012-01-03 20:00 ` John Stultz
2012-01-24 0:31 ` John Stultz
2012-01-28 3:52 ` Rabin Vincent
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=20111227105708.GA29960@upset.ux.pdb.fsc.net \
--to=afrie@gmx.net \
--cc=Wolfgang.Erig@ts.fujitsu.com \
--cc=gregkh@suse.de \
--cc=john.stultz@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rabin.vincent@stericsson.com \
--cc=torvalds@osdl.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
all inboxes | Powered by JetHome®