stmf0: Do not send more data than requested for GET_DESCRIPTOR
authorKeith Packard <keithp@keithp.com>
Fri, 10 Jun 2016 05:06:30 +0000 (22:06 -0700)
committerKeith Packard <keithp@keithp.com>
Fri, 10 Jun 2016 05:06:30 +0000 (22:06 -0700)
commit36ba97fabbed2f2a4a89da5be221c630ea3ff66f
tree1079b6fe41e5bcb6ab8516bdba034ea9dbb0e198
parent2970de9f92243b11d3beef56f3b1df3ef3579b95
stmf0: Do not send more data than requested for GET_DESCRIPTOR

When Linux boots, it asks for only the first 8 bytes of the device
descriptor; we must limit the amount of data sent back to that amount
or USB will get wedged.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/stmf0/ao_usb_stm.c