usb: gadget: f_sourcesink: add queue depth
authorPeter Chen <peter.chen@freescale.com>
Thu, 19 Nov 2015 07:02:16 +0000 (15:02 +0800)
committerFelipe Balbi <balbi@ti.com>
Tue, 15 Dec 2015 15:12:41 +0000 (09:12 -0600)
commit0d6c3d96678d11505f4923759af1e6c5fd260ff8
tree17f6a753b4b02e330d303fa751b4854ec9deb2b5
parentb084662776be8b07ab9114ff1a16a4e9bf907d35
usb: gadget: f_sourcesink: add queue depth

Add queue depth for both iso and bulk transfer, with more queues, we
can do performance and stress test using sourcesink, and update g_zero
accordingly.

Reviewed-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/function/f_sourcesink.c
drivers/usb/gadget/function/g_zero.h
drivers/usb/gadget/legacy/zero.c