From: Kevin Hilman <khilman@ti.com>
To: Tasslehoff Kjappfot <tasskjapp@gmail.com>
Cc: linux-omap@vger.kernel.org
Subject: Re: Bringing back gptimer_wakeup
Date: Thu, 28 Jun 2012 09:00:34 -0500 [thread overview]
Message-ID: <87pq8jpmd9.fsf@ti.com> (raw)
In-Reply-To: <87k3z4lcrs.fsf@ti.com> (Kevin Hilman's message of "Mon, 18 Jun 2012 11:01:59 -0700")
Kevin Hilman <khilman@ti.com> writes:
> Tasslehoff Kjappfot <tasskjapp@gmail.com> writes:
>
>> The support for using a timer to wake from suspend was removed in:
>> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=98e182a26bbbf5575457622337684ef61493e864
>>
>> I found an alternative patch
>> (http://www.mail-archive.com/linux-omap@vger.kernel.org/msg47836.html)
>> that claimed to keep it working using GPTIMER1 instead, but I haven't
>> been able to make it work (likely because the timer code has changed a
>> good deal since the patch was posted).
>>
>> Anyone got
>> a) a patch that enables this feature on newer kernels, or
>> b) an idea how the patch above can be made to work?
>
> The branch below (based on v3.4) will work (at least on OMAP3)
>
> We've been holding off on putting this back becasue the timer interface
> has been going through some major cleanup/rework, but I would like to
> see this make it back in soonish.
Note that another feature that can be used for this same feature is
wakeup using RTC.
On OMAP3 platoforms with TWL4030 PMIC (which contains an RTC), this is
successfully working using the 'rtcwake' utility.
E.g., to suspend-to-RAM and trigger an RTC wakeup 4 seconds later, do:
# rtcwake -m mem -s 4
The RTC timekeeping seems a bit broken and the actual delay seems to be
about 2x the value passed in here, but otherwise this works.
There are currently some problems with the OMAP4 RTC driver that prevent
this from working, but they need to be investigated.
Kevin
prev parent reply other threads:[~2012-06-28 14:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-18 9:18 Bringing back gptimer_wakeup Tasslehoff Kjappfot
2012-06-18 10:00 ` Shilimkar, Santosh
2012-06-18 18:01 ` Kevin Hilman
2012-06-19 6:07 ` Shilimkar, Santosh
2012-06-19 8:24 ` Tasslehoff Kjappfot
2012-06-28 14:00 ` Kevin Hilman [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=87pq8jpmd9.fsf@ti.com \
--to=khilman@ti.com \
--cc=linux-omap@vger.kernel.org \
--cc=tasskjapp@gmail.com \
/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