usb: dwc3: gadget: Enable XferComplete event
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>
Wed, 6 May 2020 02:46:45 +0000 (19:46 -0700)
committerFelipe Balbi <balbi@kernel.org>
Mon, 25 May 2020 08:09:41 +0000 (11:09 +0300)
commit548f8b31656363c21867a0a0769932b6b3f0f8b6
treec257c485fac42dcf89721f8788ba40001fab508e
parent2e6e9e4b2ed70a9d7b1f860a349b5273ed73f9fa
usb: dwc3: gadget: Enable XferComplete event

To switch from one stream to another, this requires the driver to start
a new transfer with a specific stream ID. For a transfer to complete,
the driver needs to indicate the last TRB of a transfer, and it needs to
enable XferComplete event to handle completed TRBs of a transfer. Let's
enable this event only for stream capable endpoints.

Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/dwc3/gadget.c