diff options
| author | Felipe Balbi <balbi@ti.com> | 2014-09-24 14:19:52 -0500 |
|---|---|---|
| committer | Luis Henriques <luis.henriques@canonical.com> | 2014-11-13 11:48:31 +0000 |
| commit | 923b0ef5bafa279a7971cab0131c883aaf42224b (patch) | |
| tree | 18159170a9218e0de9f5ab645cb6ff5c06615690 /include/linux | |
| parent | 364c5ea537e504234eb764a7a6021dab906eb395 (diff) | |
usb: dwc3: gadget: fix set_halt() bug with pending transfers
commit 7a60855972f0d3c014093046cb6f013a1ee5bb19 upstream.
According to our Gadget Framework API documentation,
->set_halt() *must* return -EAGAIN if we have pending
transfers (on either direction) or FIFO isn't empty (on
TX endpoints).
Fix this bug so that the mass storage gadget can be used
without stall=0 parameter.
This patch should be backported to all kernels since v3.2.
Suggested-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Felipe Balbi <balbi@ti.com>
[ kamal: backport to 3.13-stable: omitted ep_set_wedge() change ]
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
