UPSTREAM: usb: dwc3: gadget: give better command return code
authorKonrad Leszczynski <konrad.leszczynski@intel.com>
Fri, 12 Feb 2016 15:21:46 +0000 (15:21 +0000)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 16 Aug 2016 12:48:19 +0000 (20:48 +0800)
commit434c7e979e9979427df5b5d64a5eac22bb36e5c6
tree101746549a7c484dfb9304b994b6cef88107cd31
parent98b71ce5dbacb8accf25a586d5ef809268f59455
UPSTREAM: usb: dwc3: gadget: give better command return code

if Start Transfer command fails, let's try a little
harder to figure out why the command failed and give
slightly better return codes. This will be usefulf
or isochronous endpoints, at least, which could
decide to retry a given request.

Change-Id: Id3ce609ba9149235dc8c9203798dc19cb2fae4bd
Signed-off-by: Konrad Leszczynski <konrad.leszczynski@intel.com>
Signed-off-by: Rafal Redzimski <rafal.f.redzimski@intel.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
(cherry picked from commit 7b9cc7a2b101cc73f6abe3468441381c98817e54)
drivers/usb/dwc3/core.h
drivers/usb/dwc3/gadget.c