mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-19 09:04:51 +08:00
bf0964dcda
Fixes handling of multi-transaction reports for HID devices. New function hid_size_buffers() that calculates the longest report for each endpoint and stores the result in the hid_device object. These lengths are used to allocate buffers that are large enough to store any report on the endpoint. For compatibility, the minimum size for an endpoint buffer set to HID_BUFFER_SIZE rather than the known optimal case (the longest report length). It fixes bug #3063 in bugzilla. Signed-off-by: Michael Haboustak <mike-@cinci.rr.com> I simplified the patch a bit to use just a single buffer size. Signed-off-by: Vojtech Pavlik <vojtech@suse.cz> Signed-off-by: Dmitry Torokhov <dtor@mail.ru> |
||
---|---|---|
.. | ||
acecad.c | ||
aiptek.c | ||
ati_remote.c | ||
fixp-arith.h | ||
hid-core.c | ||
hid-debug.h | ||
hid-ff.c | ||
hid-input.c | ||
hid-lgff.c | ||
hid-tmff.c | ||
hid.h | ||
hiddev.c | ||
itmtouch.c | ||
kbtab.c | ||
Kconfig | ||
keyspan_remote.c | ||
Makefile | ||
mtouchusb.c | ||
pid.c | ||
pid.h | ||
powermate.c | ||
touchkitusb.c | ||
usbkbd.c | ||
usbmouse.c | ||
wacom.c | ||
xpad.c |