UPSTREAM: usb: dwc3: gadget: halt and stop based HWO bit
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 30 May 2016 10:37:02 +0000 (13:37 +0300)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 16 Aug 2016 12:48:19 +0000 (20:48 +0800)
commitd5c84f6771e889e45b192fda4fee4886c06f0c55
tree4aea99ffc2fd25d3d827e3bf66cd82f78fff948e
parentb9332431c3e88e4f2e6bb1fbe512ed43dd76b1b0
UPSTREAM: usb: dwc3: gadget: halt and stop based HWO bit

Instead of relying on empty list of queued requests,
let's rely on the fact that we have a TRB being
processed right now.

Change-Id: I06075d3aaf695f74946ebd269746a240be7e51c0
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
(cherry picked from commit 69450c4dc164d9ecbc0b54cb47a2ec80cde45da4)
drivers/usb/dwc3/gadget.c