usb: dwc3: gadget: return error if command sent to DEPCMD register fails
authorSubbaraya Sundeep Bhatta <subbaraya.sundeep.bhatta@xilinx.com>
Thu, 21 May 2015 10:16:48 +0000 (15:46 +0530)
committerFelipe Balbi <balbi@ti.com>
Tue, 26 May 2015 15:39:29 +0000 (10:39 -0500)
commit76e838c9f7765f9a6205b4d558d75a66104bc60d
treee3185b2b8f9ad1205021f11a29563a5186723029
parent891b1dc022955d36cf4c0f42d383226a930db7ed
usb: dwc3: gadget: return error if command sent to DEPCMD register fails

We need to return error to caller if command is not sent to
controller succesfully.

Signed-off-by: Subbaraya Sundeep Bhatta <sbhatta@xilinx.com>
Fixes: 72246da40f37 (usb: Introduce DesignWare USB3 DRD Driver)
Cc: <stable@vger.kernel.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/gadget.c