diff options
author | Kevin Daughtridge <kevin@kdau.com> | 2012-09-20 12:00:32 -0700 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2012-10-01 10:09:26 +0200 |
commit | 86e6b77eb7cf9ca2e9c7092b4dfd588f0a3307b6 (patch) | |
tree | d00ef9d1f11bae93c5e809246f8eae156d74b1ed /drivers/hid/hid-multitouch.c | |
parent | 4cc9834518efed3b69d3a8ff3bd162e089f68d34 (diff) | |
download | op-kernel-dev-86e6b77eb7cf9ca2e9c7092b4dfd588f0a3307b6.zip op-kernel-dev-86e6b77eb7cf9ca2e9c7092b4dfd588f0a3307b6.tar.gz |
HID: keep dev_rdesc unmodified and use it for comparisons
The dev_rdesc member of the hid_device structure is meant to store the original
report descriptor received from the device, but it is currently passed to any
report_fixup method before it is copied to the rdesc member. This patch uses a
temporary buffer to shield dev_rdesc from the side effects of many HID drivers'
report_fixup implementations.
usbhid's hid_post_reset checks the report descriptor currently returned by the
device against a descriptor that may have been modified by a driver's
report_fixup method. That leaves some devices nonfunctional after a resume, with
a "reset_resume error 1" reported. This patch checks the new descriptor against
the unmodified dev_rdesc instead and uses the original, instead of modified,
report size.
BugLink: http://bugs.launchpad.net/bugs/1049623
Signed-off-by: Kevin Daughtridge <kevin@kdau.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-multitouch.c')
0 files changed, 0 insertions, 0 deletions