Here follows few improvements on the MIDI driver. Those improvements have been tested for months now, that's why I feel confident to submit these patches now.
Patches number 1 and 4 contain bug fixes. Patches number 2 and 3 are not critical but it improves the code and default configuration, which is nice to have. Felipe F. Tonello (4): usb: gadget: f_midi: fixed endianness when using wMaxPacketSize usb: gadget: f_midi: defaults buflen sizes to 512 usb: gadget: f_midi: refactor state machine usb: gadget: f_midi: drop substreams when disabling endpoint drivers/usb/gadget/function/f_midi.c | 229 ++++++++++++++++++++++------------- drivers/usb/gadget/legacy/gmidi.c | 2 +- 2 files changed, 144 insertions(+), 87 deletions(-) -- 2.9.2