HID: i2c-hid: add a simple quirk to fix device defects
authorHungNien Chen <hn.chen@weidahitech.com>
Tue, 4 Apr 2017 19:32:03 +0000 (19:32 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 12 Apr 2017 10:41:15 +0000 (12:41 +0200)
commitee670af5feede68f0ad22b329626594b8aebefc3
treec4b4b3c9cc0237c96aa8fe10898b49a2bb26bd41
parentd640c41bced65d82592e4d01a61715d78dede2ae
HID: i2c-hid: add a simple quirk to fix device defects

[ Upstream commit 71af01a8c85ad89449209594133bdfdfaa9f1e2a ]

Certain devices produced by Weida Tech need to have a wakeup command sent to
them before powering on. The call itself will come back with error, but the
device can be powered on afterwards.

[jkosina@suse.cz: rewrite changelog]
[jkosina@suse.cz: remove unused device ID addition]
Signed-off-by: HungNien Chen <hn.chen@weidahitech.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hid/hid-ids.h
drivers/hid/i2c-hid/i2c-hid.c