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)
committerDanny Wood <danwood76@gmail.com>
Tue, 29 Jan 2019 13:09:17 +0000 (13:09 +0000)
commitda5a2307a885e0d24b85bfc41078e7288b731b27
treeb03b2b38bc73a0d97b631ea3344db3b216d2c59c
parent3df196bb54fa4f297fda4b070c048869f92a8caa
usb: dwc3: gadget: return error if command sent to DEPCMD register fails

commit 76e838c9f7765f9a6205b4d558d75a66104bc60d upstream.

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)
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/gadget.c