altos/lpc: Reset less of the device on USB reset.
authorKeith Packard <keithp@keithp.com>
Thu, 19 Dec 2013 07:27:34 +0000 (23:27 -0800)
committerKeith Packard <keithp@keithp.com>
Thu, 19 Dec 2013 07:27:34 +0000 (23:27 -0800)
commit1ab12861c3e70d7c22b27d988546a925616a0adc
treeac92a4158bad80738b7e356c4f2c0c1c63e50b50
parent3b13cc2ca035b13582cd2e59ba7286f872f43c6e
altos/lpc: Reset less of the device on USB reset.

This leaves most of the device configured across USB reset, which
appears to help when sending a IN reply to the first SETUP packet;
without this change, the IN reply would always get a length of 0,
which is fine for SET_ADDRESS, but not for GET_DESCRIPTOR_DEVICE,
which OS X appears to send before setting the address (go figure).

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