summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/legacy
diff options
context:
space:
mode:
authorFelipe F. Tonello <eu@felipetonello.com>2015-12-01 18:31:02 +0000
committerFelipe Balbi <balbi@ti.com>2015-12-16 10:07:29 -0600
commite1e3d7ec5da32af3bded733a61c248d7db0b4e34 (patch)
treea4cf0c8bb87df506e28d48c5ed3a5c03d76402b5 /drivers/usb/gadget/legacy
parentf0f1b8cac4d8d973e95f25d9ea132775fb43c5f4 (diff)
downloadop-kernel-dev-e1e3d7ec5da32af3bded733a61c248d7db0b4e34.zip
op-kernel-dev-e1e3d7ec5da32af3bded733a61c248d7db0b4e34.tar.gz
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/legacy/gmidi.c b/drivers/usb/gadget/legacy/gmidi.c
index e27aad5..fc2ac15 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);
OpenPOWER on IntegriCloud