Re: [RFC] Wakeup for PNP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux