If the USB frame length is set to 1024 bytes, WMT_BSIZE, the EETI controller

will pack multiple touch events in the packet and the current code will only
process the first touch event.

As a result some important events are lost like releasing the finger from the
touchscreen.

Use the maximum maximum packet size as buffer size instead.

Submitted by:	Oskar Holmlund <oskar.holmlund@ohdata.se>
PR:		244718
MFC after:	3 days
Sponsored by:	Mellanox Technologies
This commit is contained in:
Hans Petter Selasky 2020-03-11 08:16:13 +00:00
parent e3bf606c5d
commit 45ddfe6806

View File

@ -251,7 +251,7 @@ static const struct usb_config wmt_config[WMT_N_TRANSFER] = {
.endpoint = UE_ADDR_ANY,
.direction = UE_DIR_IN,
.flags = { .pipe_bof = 1, .short_xfer_ok = 1 },
.bufsize = WMT_BSIZE,
.bufsize = 0, /* use wMaxPacketSize */
.callback = &wmt_intr_callback,
},
};