From: Alan Stern <stern@rowland.harvard.edu>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Bjorn Helgaas <bjorn.helgaas@hp.com>,
Li Shaohua <shaohua.li@intel.com>,
Linux-pm mailing list <linux-pm@lists.linux-foundation.org>,
linux-input@vger.kernel.org
Subject: Re: [RFC] Wakeup for PNP
Date: Wed, 3 Mar 2010 10:29:09 -0500 (EST) [thread overview]
Message-ID: <Pine.LNX.4.44L0.1003031019040.2821-100000@iolanthe.rowland.org> (raw)
In-Reply-To: <20100302213105.GB13499@core.coreip.homeip.net>
On Tue, 2 Mar 2010, Dmitry Torokhov wrote:
> > @@ -656,7 +658,7 @@ static struct pnp_device_id pnp_kbd_devi
> > };
> >
> > static struct pnp_driver i8042_pnp_kbd_driver = {
> > - .name = "i8042 kbd",
> > + .name = "i8042-kbd",
>
> Why is this needed? I don't think spaces are more dangerous than a colon
> which we do use...
This string becomes the name of a directory in sysfs. Having a ' '
character in a directory name just doesn't seem like a good idea; at
the very least it's likely to confuse shell scripts. (A ':' character
is a lot less subject to misinterpretation.) I could change the '-' to
':' if you prefer.
> Other than that - looks reasonable to me...
Thanks. I'll separate out the driver name change from the rest of the
patch.
There are a couple of questions remaining. The patch enables wakeup on
the i8042-aux device -- is this a good idea? I haven't tested that
part of it yet, but we wouldn't want suspended systems waking up just
because somebody moves the mouse around. On the other hand, on some
machines (like mine!) it may not be possible to enable keyboard-wakeup
without also enabling mouse-wakeup, since they use the same GPE.
Also, the patch effectively tells the kernel that ISAPNP and PNPBIOS
devices are incapable of issuing wakeup requests. Is that going to
cause trouble for people? Would it be better to change the patch so
that it doesn't call device_set_wakeup_capable() if
dev->protocol->can_wakeup isn't defined?
Alan Stern
next prev parent reply other threads:[~2010-03-03 15:29 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <201002212139.39746.rjw@sisk.pl>
2010-02-22 16:33 ` Two problems with system sleep Alan Stern
2010-02-22 18:45 ` Rafael J. Wysocki
2010-02-22 18:45 ` Rafael J. Wysocki
2010-02-22 21:33 ` Alan Stern
2010-02-22 22:00 ` Rafael J. Wysocki
2010-02-22 22:17 ` Alan Stern
2010-02-22 22:35 ` Rafael J. Wysocki
2010-02-22 22:35 ` Rafael J. Wysocki
2010-02-23 16:12 ` Alan Stern
2010-02-23 21:02 ` Rafael J. Wysocki
2010-02-23 21:35 ` Alan Stern
2010-02-23 23:08 ` Rafael J. Wysocki
2010-02-24 16:59 ` Alan Stern
2010-02-23 21:49 ` Dmitry Torokhov
2010-02-24 15:39 ` Alan Stern
2010-03-02 20:13 ` [RFC] Wakeup for PNP Alan Stern
2010-03-02 20:41 ` Bjorn Helgaas
2010-03-02 20:41 ` Bjorn Helgaas
2010-03-02 21:08 ` Alan Stern
2010-03-02 21:08 ` Alan Stern
2010-03-02 21:31 ` Dmitry Torokhov
2010-03-03 15:29 ` Alan Stern
2010-03-03 15:29 ` Alan Stern [this message]
2010-03-09 7:45 ` Dmitry Torokhov
2010-03-09 7:45 ` Dmitry Torokhov
2010-03-02 21:31 ` Dmitry Torokhov
2010-02-22 16:33 ` Two problems with system sleep Alan Stern
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=Pine.LNX.4.44L0.1003031019040.2821-100000@iolanthe.rowland.org \
--to=stern@rowland.harvard.edu \
--cc=bjorn.helgaas@hp.com \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-input@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.org \
--cc=shaohua.li@intel.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 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.