usb: dwc3: simplify ZLP handling
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 7 Apr 2017 13:34:38 +0000 (16:34 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 11 Apr 2017 07:58:29 +0000 (10:58 +0300)
commitd6e5a549cc4dba504a62855d9613836f76950790
tree1804ea4768e2e880ae475f31ba3bf8b26c3c7dc3
parent4199c5f8bccd7ff6923c32af0f8ef0224eeaa651
usb: dwc3: simplify ZLP handling

It's much simpler to just add one extra TRB chained to previous TRB to
handle ZLP. This helps us reduce pointless allocations and simplifies
the code a little bit.

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/core.h
drivers/usb/dwc3/ep0.c
drivers/usb/dwc3/gadget.c