usb: dwc3: gadget: return error if command sent to DGCMD register fails
authorSubbaraya Sundeep Bhatta <subbaraya.sundeep.bhatta@xilinx.com>
Thu, 21 May 2015 10:16:47 +0000 (15:46 +0530)
committerDanny Wood <danwood76@gmail.com>
Tue, 29 Jan 2019 13:09:17 +0000 (13:09 +0000)
commit3df196bb54fa4f297fda4b070c048869f92a8caa
tree295f5efb9d07f114fe951d1756c8edd6a39f67e1
parentf9432c6758b566f25d611293bd2a1d7d021bed53
usb: dwc3: gadget: return error if command sent to DGCMD register fails

commit 891b1dc022955d36cf4c0f42d383226a930db7ed 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: b09bb64239c8 (usb: dwc3: gadget: implement Global Command support)
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/gadget.c