diff options
author | Felipe F. Tonello <eu@felipetonello.com> | 2015-12-01 21:31:02 +0300 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-12-16 19:07:29 +0300 |
commit | e1e3d7ec5da32af3bded733a61c248d7db0b4e34 (patch) | |
tree | a4cf0c8bb87df506e28d48c5ed3a5c03d76402b5 /drivers/usb/gadget/legacy | |
parent | f0f1b8cac4d8d973e95f25d9ea132775fb43c5f4 (diff) | |
download | linux-e1e3d7ec5da32af3bded733a61c248d7db0b4e34.tar.xz |
usb: gadget: f_midi: pre-allocate IN requests
This patch introduces pre-allocation of IN endpoint USB requests. This
improves on latency (requires no usb request allocation on transmit) and avoid
several potential probles on allocating too many usb requests (which involves
DMA pool allocation problems).
This implementation also handles better multiple MIDI Gadget ports, always
processing the last processed MIDI substream if the last USB request wasn't
enought to handle the whole stream.
Signed-off-by: Felipe F. Tonello <eu@felipetonello.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/legacy')
-rw-r--r-- | drivers/usb/gadget/legacy/gmidi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/legacy/gmidi.c b/drivers/usb/gadget/legacy/gmidi.c index e27aad5e50b9..fc2ac150f5ff 100644 --- a/drivers/usb/gadget/legacy/gmidi.c +++ b/drivers/usb/gadget/legacy/gmidi.c @@ -53,7 +53,7 @@ MODULE_PARM_DESC(buflen, "MIDI buffer length"); static unsigned int qlen = 32; module_param(qlen, uint, S_IRUGO); -MODULE_PARM_DESC(qlen, "USB read request queue length"); +MODULE_PARM_DESC(qlen, "USB read and write request queue length"); static unsigned int in_ports = 1; module_param(in_ports, uint, S_IRUGO); |