All of lore.kernel.org
 help / color / mirror / Atom feed
From: Russell King <rmk+lkml@arm.linux.org.uk>
To: Dmitry Torokhov <dtor_core@ameritech.net>
Cc: Vojtech Pavlik <vojtech@suse.cz>, LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 7/7] Input: remove pm_dev from core
Date: Sat, 23 Oct 2004 21:49:46 +0100	[thread overview]
Message-ID: <20041023214946.A13521@flint.arm.linux.org.uk> (raw)
In-Reply-To: <200410210825.00133.dtor_core@ameritech.net>; from dtor_core@ameritech.net on Thu, Oct 21, 2004 at 08:25:00AM -0500

On Thu, Oct 21, 2004 at 08:25:00AM -0500, Dmitry Torokhov wrote:
> On Thursday 21 October 2004 04:13 am, Russell King wrote:
> > On Thu, Oct 21, 2004 at 02:30:02AM -0500, Dmitry Torokhov wrote:
> > > ChangeSet@1.1971, 2004-10-20 00:57:45-05:00, dtor_core@ameritech.net
> > >   Input: get rid of pm_dev in input core as it is deprecated and
> > >          nothing uses it anyway.
> > 
> > You might as well remove it completely - anything which uses the
> > driver model PM implementation will never call these methods, and
> > ARM uses the driver model PM implementation.
> > 
> > Therefore, any driver using the obsolete pm_register() functions
> > won't receive any PM events.
> > 
> > Same is true on x86 btw.
> > 
> 
> Hmm, I admit I missed arm case but for x86 should work actually:
> 
> in arch/i386/kernel/apm.c:
> static int suspend(int vetoable)
> {
>         int             err;
>         struct apm_user *as;
> 
>         if (pm_send_all(PM_SUSPEND, (void *)3)) {
>                 /* Vetoed */
>                 if (vetoable) {
>                         if (apm_info.connection_version > 0x100)
>                                 set_system_power_state(APM_STATE_REJECT);
>                         err = -EBUSY;
>                         ignore_sys_suspend = 0;
>                         printk(KERN_WARNING "apm: suspend was vetoed.\n");
>                         goto out;
>                 }
>                 printk(KERN_CRIT "apm: suspend was vetoed, but suspending anyway.\n");
>         }
> 
>         device_suspend(3);
>         device_power_down(3);
> ...
> 
> but since you say arm does not care I think we'll proceed with the patch.

Sure, it works for x86 using APM.  Don't forget there's ACPI and the
device model PM implementation (and swsusp).  The latter two did not
call the old interfaces last time I checked.

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

      reply	other threads:[~2004-10-23 20:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-21  7:23 [PATCH 0/7] New input patches Dmitry Torokhov
2004-10-21  7:24 ` [PATCH 1/7] Input: whitespace fixes Dmitry Torokhov
2004-10-21  7:25   ` [PATCH 2/7] Input: remove class devices on disconnect Dmitry Torokhov
2004-10-21  7:26     ` [PATCH 3/7] Input: link input_dev and serio (sysfs) Dmitry Torokhov
2004-10-21  7:28       ` [PATCH 4/7] Input: i8042 runtime debug switch Dmitry Torokhov
2004-10-21  7:28         ` [PATCH 5/7] Input: i8042 remove old-style PM handling Dmitry Torokhov
2004-10-21  7:29           ` [PATCH 6/7] Input: i8042 remove reboot notifier Dmitry Torokhov
2004-10-21  7:30             ` [PATCH 7/7] Input: remove pm_dev from core Dmitry Torokhov
2004-10-21  9:13               ` Russell King
2004-10-21 13:25                 ` Dmitry Torokhov
2004-10-23 20:49                   ` Russell King [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=20041023214946.A13521@flint.arm.linux.org.uk \
    --to=rmk+lkml@arm.linux.org.uk \
    --cc=dtor_core@ameritech.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=vojtech@suse.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.