lkml.org 
[lkml]   [2015]   [Oct]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v4 0/7] USB MIDI Gadget improvements and bug fixes
Date
Patch 7 has changes on how to transmit IN USB requests. It implements a FIFO
of pre-allocated usb requests and uses then as needed, instead of allocating
then on demand. This is my initial implementation and is open for
suggestions and comments.

Patches 1-6 is pretty much straight forward.

changes in v4:
- pre-alocation of in requests.
- more code clean up
- fix memory leak on out requests
- configure endpoints only when setting up MIDIStreaming interface

Felipe F. Tonello (7):
usb: gadget: f_midi: Transmit data only when IN ep is enabled
usb: gadget: f_midi: remove duplicated code
usb: gadget: define free_ep_req as universal function
usb: gadget: f_midi: fix leak on failed to enqueue out requests
usb: gadget: f_midi: set altsettings only for MIDIStreaming interface
usb: gadget: gmidi: Cleanup legacy code
usb: gadget: f_midi: pre-allocate IN requests

drivers/usb/gadget/function/f_midi.c | 201 ++++++++++++++++++++---------
drivers/usb/gadget/function/f_sourcesink.c | 6 -
drivers/usb/gadget/function/g_zero.h | 1 -
drivers/usb/gadget/legacy/gmidi.c | 12 +-
drivers/usb/gadget/u_f.c | 8 ++
drivers/usb/gadget/u_f.h | 3 +-
6 files changed, 151 insertions(+), 80 deletions(-)

--
2.1.4



\
 
 \ /
  Last update: 2015-10-26 18:01    [W:0.100 / U:1.840 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site