]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Aug 2015 16:29:04 +0000 (09:29 -0700)
commit2dc7e2d5d7dca18c9f8a8cf5c0d2d3c5591af9a8
tree7c394c7d6cb233d904dbd7fb7a41761ba0c82493
parent5a01a6e9d6f4a24039ceec3f9a38b196395d096d
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