From: Russell King - ARM Linux <linux@arm.linux.org.uk>
To: Pavel Machek <pavel@ucw.cz>, eric miao <eric.y.miao@gmail.com>
Cc: rpurdie@rpsys.net, lenz@cs.wisc.edu,
kernel list <linux-kernel@vger.kernel.org>,
Dirk@Opfer-Online.de, arminlitzel@web.de,
Cyril Hrubis <metan@ucw.cz>,
thommycheck@gmail.com,
linux-arm-kernel <linux-arm-kernel@lists.arm.linux.org.uk>,
dbaryshkov@gmail.com, omegamoon@gmail.com
Subject: Re: zaurus needs generic pxa suspend/resume routines
Date: Sun, 7 Jun 2009 16:21:52 +0100 [thread overview]
Message-ID: <20090607152152.GA7785@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <20090605131625.GC1376@ucw.cz>
On Fri, Jun 05, 2009 at 03:16:25PM +0200, Pavel Machek wrote:
> For suspend/resume to work, spitz needs pxa_pm_suspend/resume to be
> called. Otherwise PSPR is not set properly, and system will die during
> resume.
100 points for copying lots of people. 0 points for omitting the right
person. Add Eric.
Eric, ack?
> Signed-off-by: Pavel Machek <pavel@ucw.cz>
>
> PATCH FOLLOWS
> KernelVersion: 2.6.30-rc6
>
> --- linux-rc/arch/arm.ofic/common/sharpsl_pm.c 2009-05-29 01:10:31.000000000 +0200
> +++ linux-rc/arch/arm/common/sharpsl_pm.c 2009-06-02 15:33:11.000000000 +0200
> @@ -553,7 +556,7 @@
> corgi_goto_sleep(alarm_time, alarm_enable, state);
> return 1;
> }
> - if(sharpsl_off_charge_battery()) {
> + if (sharpsl_off_charge_battery()) {
> dev_dbg(sharpsl_pm.dev, "Charging. Suspend...\n");
> corgi_goto_sleep(alarm_time, alarm_enable, state);
> return 1;
> @@ -774,7 +777,9 @@
> }
>
> #ifdef CONFIG_PM
> static struct platform_suspend_ops sharpsl_pm_ops = {
> + .prepare = pxa_pm_prepare,
> + .finish = pxa_pm_finish,
> .enter = corgi_pxa_pm_enter,
> .valid = suspend_valid_only_mem,
> };
> diff -ur linux-rc/arch/arm.ofic/mach-pxa/include/mach/pm.h linux-rc/arch/arm/mach-pxa/include/mach/pm.h
> --- linux-rc/arch/arm.ofic/mach-pxa/include/mach/pm.h 2009-05-29 01:11:00.000000000 +0200
> +++ linux-rc/arch/arm/mach-pxa/include/mach/pm.h 2009-06-02 15:39:50.000000000 +0200
> @@ -27,6 +27,8 @@
> extern void pxa_cpu_resume(void);
>
> extern int pxa_pm_enter(suspend_state_t state);
> +extern int pxa_pm_prepare(void);
> +extern void pxa_pm_finish(void);
>
> /* NOTE: this is for PM debugging on Lubbock, it's really a big
> * ugly, but let's keep the crap minimum here, instead of direct
> diff -ur linux-rc/arch/arm.ofic/mach-pxa/pm.c linux-rc/arch/arm/mach-pxa/pm.c
> --- linux-rc/arch/arm.ofic/mach-pxa/pm.c 2009-05-29 01:11:02.000000000 +0200
> +++ linux-rc/arch/arm/mach-pxa/pm.c 2009-06-01 12:01:07.000000000 +0200
> @@ -79,7 +84,7 @@
> return -EINVAL;
> }
>
> -static int pxa_pm_prepare(void)
> +int pxa_pm_prepare(void)
> {
> int ret = 0;
>
> @@ -89,7 +94,7 @@
> return ret;
> }
>
> -static void pxa_pm_finish(void)
> +void pxa_pm_finish(void)
> {
> if (pxa_cpu_pm_fns && pxa_cpu_pm_fns->finish)
> pxa_cpu_pm_fns->finish();
>
> --
> (english) http://www.livejournal.com/~pavelmachek
> (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
>
> -------------------------------------------------------------------
> List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel
> FAQ: http://www.arm.linux.org.uk/mailinglists/faq.php
> Etiquette: http://www.arm.linux.org.uk/mailinglists/etiquette.php
next prev parent reply other threads:[~2009-06-07 15:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-05 13:16 Pavel Machek
2009-06-07 15:21 ` Russell King - ARM Linux [this message]
2009-06-08 6:58 ` Eric Miao
2009-06-08 16:19 ` Russell King - ARM Linux
2009-06-09 1:43 ` Eric Miao
2009-06-09 10:50 ` Stanislav Brabec
2009-06-09 22:09 ` Pavel Machek
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=20090607152152.GA7785@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--cc=Dirk@Opfer-Online.de \
--cc=arminlitzel@web.de \
--cc=dbaryshkov@gmail.com \
--cc=eric.y.miao@gmail.com \
--cc=lenz@cs.wisc.edu \
--cc=linux-arm-kernel@lists.arm.linux.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=metan@ucw.cz \
--cc=omegamoon@gmail.com \
--cc=pavel@ucw.cz \
--cc=rpurdie@rpsys.net \
--cc=thommycheck@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
all inboxes | Powered by JetHome®