hid: usbhid: enable hid to wakeup system if it supports remote wakeup
authorFrank Wang <frank.wang@rock-chips.com>
Sun, 18 Sep 2016 08:26:07 +0000 (16:26 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 24 Apr 2017 11:28:56 +0000 (19:28 +0800)
commite1653e4dc595bcc912a218f38ede0080e14377e2
tree8e0f649b04a427e763275f563ea19cbdaea946f0
parentf55c472258b097d41a3c3ceda2e35400a9aa79f2
hid: usbhid: enable hid to wakeup system if it supports remote wakeup

Refer to E.2 (P67) of Device Class Definition for Human Interface
Devices V1.11, the bmAttributes field of the standard configuration
descriptor bit 5 should be set if the HID support Remote Wakeup.

This patch enable the usb HID to wake up the system if the HID
supports remote wakeup.

Change-Id: I169c49ff6187b6400b91633332a72964caca1a94
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
drivers/hid/usbhid/hid-core.c