Fix handling of short control transfers
Detail: c/musb - Updated musb_ep0_host() to treat a short control packet as the end of the transfer, as mandated by the USB spec. Also updated a few other pieces of code to ensure the transfer length is reported correctly if an error occurs. c/cmodule - Fix potential null pointer dereference when debugging enabled Makefile - Fix lack of DPRINTF() debug output in debug builds due to USB_DEBUG not being defined Admin: Tested on BB-xM with high processor vectors Fixes 99% of connected devices failing to initialise following the change to the device initialisation logic made to USBDriver in NetBSD-0_82 (initial device descriptor requests now request more data than is likely to be available, triggering a short packet/xfer response) Version 0.21. Tagged as 'MUSBDriver-0_21'
Showing with 37 additions and 13 deletions