]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: s3c-hsotg: fix "protocol stall" handling
authorRobert Baldyga <r.baldyga@samsung.com>
Thu, 19 Sep 2013 09:50:17 +0000 (11:50 +0200)
committerFelipe Balbi <balbi@ti.com>
Tue, 15 Oct 2013 13:42:40 +0000 (08:42 -0500)
commitb6171abe7e69177b7e9972378a51fb545eee7914
treeb083f58b6695f417810b9ed3f4ef4592b4054a01
parent72a2951d4d583b19645bb6be16c2f366d669eb2f
usb: gadget: s3c-hsotg: fix "protocol stall" handling

After normal handling of SetupDone interrupt, XferCompl interrupt occurs, and
then we enqueue new setup request. But when ep0 is stalled, there is no
XferCompl, so we have to enqueue setup request immediately after stalling ep.
Otherwise incoming control requests won't be processed correctly.

Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/s3c-hsotg.c