linux/drivers/usb/gadget/legacy
Andrzej Pietrasiewicz eb132ccbde usb: gadget: printer: enqueue printer's response for setup request
Function-specific setup requests should be handled in such a way, that
apart from filling in the data buffer, the requests are also actually
enqueued: if function-specific setup is called from composte_setup(),
the "usb_ep_queue()" block of code in composite_setup() is skipped.

The printer function lacks this part and it results in e.g. get device id
requests failing: the host expects some response, the device prepares it
but does not equeue it for sending to the host, so the host finally asserts
timeout.

This patch adds enqueueing the prepared responses.

Cc: <stable@vger.kernel.org> # v3.4+
Fixes: 2e87edf492: "usb: gadget: make g_printer use composite"
Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
2015-03-10 15:33:34 -05:00
..
acm_ms.c
audio.c usb: gadget: f_uac1: use defined constants as defaults 2014-08-20 14:05:14 -05:00
cdc2.c
dbgp.c usb: gadget: dbgp: Fix endpoint config after USB disconnect 2014-11-10 17:19:34 -06:00
ether.c
g_ffs.c usb: gadget: gadgetfs: fix sparse warnings 2015-02-23 09:23:20 -06:00
gmidi.c usb: gadget: midi: f_midi_alloc() can be static 2014-11-12 09:01:03 -06:00
hid.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
inode.c usb: gadget: gadgetfs: fix an oops in ep_write() 2015-01-09 18:15:11 -06:00
Kconfig kconfig: use bool instead of boolean for type definition attributes 2015-01-07 13:08:04 +01:00
Makefile usb: gadget: webcam: convert webcam to new interface of f_uvc 2014-09-09 09:49:31 -05:00
mass_storage.c
multi.c
ncm.c
nokia.c
printer.c usb: gadget: printer: enqueue printer's response for setup request 2015-03-10 15:33:34 -05:00
serial.c
tcm_usb_gadget.c Merge remote-tracking branch 'scsi-queue/drivers-for-3.19' into for-linus 2014-12-18 05:56:29 -08:00
tcm_usb_gadget.h
webcam.c usb: gadget: webcam: convert webcam to new interface of f_uvc 2014-09-09 09:49:31 -05:00
zero.c Merge Linus' tree to be be to apply submitted patches to newer code than 2014-11-20 14:42:02 +01:00