usb: dwc3: gadget: do not map/unmap ZLP transfers
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Wed, 31 Aug 2011 15:12:02 +0000 (17:12 +0200)
committerFelipe Balbi <balbi@ti.com>
Fri, 9 Sep 2011 10:03:46 +0000 (13:03 +0300)
commit78c58a53c9864447f2a46d4c06dd3c2616823ad2
tree1827737dc8434619b7c1f9e673b491cb5e71c0ff
parent42077b0a3328792974b232691f5d0eb9dd644768
usb: dwc3: gadget: do not map/unmap ZLP transfers

If the gadget drivers sends a ZLP we are trying to map this this request
which does not work on all implementations. So we simply skip mapping
it.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/gadget.c