Input: enable remote wakeup for PNP i8042 keyboard ports
authorAlan Stern <stern@rowland.harvard.edu>
Tue, 9 Mar 2010 07:42:46 +0000 (23:42 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 9 Mar 2010 08:30:15 +0000 (00:30 -0800)
This patch (as1355) enables remote wakeup by default on PNP i8042
keyboard ports.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/serio/i8042-x86ia64io.h

index 2a5982e532f81aea8ec28fca40403c2f68150723..3696cab4059804a1cf979e4328d5dbf33ca8dfff 100644 (file)
@@ -624,6 +624,9 @@ static int i8042_pnp_kbd_probe(struct pnp_dev *dev, const struct pnp_device_id *
                strlcat(i8042_pnp_kbd_name, pnp_dev_name(dev), sizeof(i8042_pnp_kbd_name));
        }
 
+       /* Keyboard ports are always supposed to be wakeup-enabled */
+       device_set_wakeup_enable(&dev->dev, true);
+
        i8042_pnp_kbd_devices++;
        return 0;
 }