UPSTREAM: usb: dwc3: gadget: Initialize the TRB ring
authorJohn Youn <johnyoun@synopsys.com>
Fri, 20 May 2016 00:26:08 +0000 (17:26 -0700)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 16 Aug 2016 12:48:19 +0000 (20:48 +0800)
commit39298655f88b3a951512a120be82502d59746a83
tree6b1c37716908ff90cbe812a85c5a3f83927f873f
parent364b2e8381832369dbe6023c3e692f88b99d5aa0
UPSTREAM: usb: dwc3: gadget: Initialize the TRB ring

Clears out all the TRBs in the ring to clean up any stale data that
might be in them from the previous time the endpoint was enabled.

Also removed the existing clear of the LINK trb since the entire ring is
cleard just before.

Change-Id: I311d0931dc9daa6b6f6e39d252e54c37c516c190
Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
(cherry picked from commit 0d25744ad107b6c9010153f3ebf8b59672b5b8e7)
drivers/usb/dwc3/gadget.c