]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc2: gadget: fix clear halt feature handling
authorGregory Herrero <gregory.herrero@intel.com>
Fri, 30 Jan 2015 08:09:27 +0000 (09:09 +0100)
committerFelipe Balbi <balbi@ti.com>
Fri, 30 Jan 2015 16:30:29 +0000 (10:30 -0600)
commit651ffef1527661cf786f6e93cbd6de0b86a21391
treed387b6bc306e1f96b364e016b3c494c55353ce48
parentc837e4a7b25184d910601e50aa18404247ec5d2d
usb: dwc2: gadget: fix clear halt feature handling

When clearing HALT on an endpoint, req->complete of in progress
requests must be called with locks off. New request should only be
started if there is not already a pending request on the endpoint.

Tested-by: Robert Baldyga <r.baldyga@samsung.com>
Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Gregory Herrero <gregory.herrero@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc2/gadget.c