linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Russell King <rmk@arm.linux.org.uk>
To: Pavel Machek <pavel@ucw.cz>
Cc: kernel list <linux-kernel@vger.kernel.org>
Subject: Re: What happened to SUSPEND_SAVE_STATE?
Date: Wed, 10 Sep 2003 23:41:59 +0100	[thread overview]
Message-ID: <20030910234159.R30046@flint.arm.linux.org.uk> (raw)
In-Reply-To: <20030910223640.GD257@elf.ucw.cz>; from pavel@ucw.cz on Thu, Sep 11, 2003 at 12:36:40AM +0200

On Thu, Sep 11, 2003 at 12:36:40AM +0200, Pavel Machek wrote:
> > diff -Nru a/drivers/pcmcia/i82365.c b/drivers/pcmcia/i82365.c
> > --- a/drivers/pcmcia/i82365.c	Wed Sep 10 23:18:34 2003
> > +++ b/drivers/pcmcia/i82365.c	Wed Sep 10 23:18:34 2003
> > @@ -1351,11 +1351,27 @@
> >  
> >  /*====================================================================*/
> >  
> > +static int i82365_suspend(struct device *dev, u32 state, u32 level)
> > +{
> > +	int ret = 0;
> > +	if (level == SUSPEND_SAVE_STATE)
> > +		ret = pcmcia_socket_dev_suspend(dev, state);
> > +	return ret;
> > +}
> > +
> > +static int i82365_resume(struct device *dev, u32 level)
> > +{
> > +	int ret = 0;
> > +	if (level == RESUME_RESTORE_STATE)
> > +		ret = pcmcia_socket_dev_resume(dev);
> > +	return ret;
> > +}
> > +
> >  static struct device_driver i82365_driver = {
> >  	.name = "i82365",
> >  	.bus = &platform_bus_type,
> > -	.suspend = pcmcia_socket_dev_suspend,
> > -	.resume = pcmcia_socket_dev_resume,
> > +	.suspend = i82365_suspend,
> > +	.resume = i82365_resume,
> >  };
> >  
> >  static struct platform_device i82365_device = {
> 
> I was not able to find *any* place in the tree that would call suspend
> with SUSPEND_SAVE_STATE as level. Maybe just my grep was wrong?

It is correct for the time being.  Well, as far as the ARM tree goes.
At the moment, the attitude towards platform devices seems to be "tough,
live with it."  So, I have my own work-arounds, and until such time that
mainline comes up with a solution, I'm happy.

-- 
Russell King (rmk@arm.linux.org.uk)	http://www.arm.linux.org.uk/personal/
Linux kernel maintainer of:
  2.6 ARM Linux   - http://www.arm.linux.org.uk/
  2.6 PCMCIA      - http://pcmcia.arm.linux.org.uk/
  2.6 Serial core

  reply	other threads:[~2003-09-10 22:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-10 20:11 What happened to SUSPEND_SAVE_STATE? Pavel Machek
2003-09-10 20:49 ` Pavel Machek
2003-09-10 22:25   ` Russell King
2003-09-10 22:36     ` Pavel Machek
2003-09-10 22:41       ` Russell King [this message]
2003-09-10 23:06         ` Pavel Machek
2003-09-10 22:22 ` Russell King

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=20030910234159.R30046@flint.arm.linux.org.uk \
    --to=rmk@arm.linux.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@ucw.cz \
    /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).