]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: gadget: handle request->zero
authorFelipe Balbi <balbi@ti.com>
Wed, 2 Dec 2015 16:06:45 +0000 (10:06 -0600)
committerFelipe Balbi <balbi@ti.com>
Tue, 15 Dec 2015 15:12:41 +0000 (09:12 -0600)
commitc950500ef7a496ae9959e7b832d47d8ebd36fc48
tree352b876502b2b7c05e5a954ec0c21aa006897210
parentc5c8bb61551058ab2b34075b239ce9688bc72301
usb: dwc3: gadget: handle request->zero

So far, dwc3 has always missed request->zero
handling for every endpoint. Let's implement
that so we can handle cases where transfer must
be finished with a ZLP.

Note that dwc3 is a little special. Even though
we're dealing with a ZLP, we still need a buffer
of wMaxPacketSize bytes; to hide that detail from
every gadget driver, we have a preallocated buffer
of 1024 bytes (biggest bulk size) to use (and
share) among all endpoints.

Reported-by: Ravi B <ravibabu@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/core.h
drivers/usb/dwc3/gadget.c