]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: s3c-otg: Fix short packet for request size > ep.maxpacket
authorRoger Quadros <rogerq@ti.com>
Tue, 19 Apr 2016 12:20:39 +0000 (15:20 +0300)
committerMarek Vasut <marex@denx.de>
Mon, 25 Apr 2016 15:56:30 +0000 (17:56 +0200)
commit842769ea51d849fee3f6c03939cabd3971e75cfd
tree97844f491edbb15f76c1ba28888485109d390768
parentac484c5a6a5745503a5c1b83a3d4c1808b677ebf
usb: s3c-otg: Fix short packet for request size > ep.maxpacket

Request size can be greater than ep.packet and still end in a
short packet. We need to tackle this case as end of transfer
(if short_not_ok is not set) as indicated in USB 2.0 Specification [1],
else we get stuck up on certain protocols like fastboot.

[1] - USB2.0 Specification, Section 5.3.2 Pipes

Reported-by: Steve Rae <steve.rae@broadcom.com>
Signed-off-by: Roger Quadros <rogerq@ti.com>
Tested-by: Steve Rae <steve.rae@broadcom.com>
Tested-by: Lukasz Majewski <l.majewski@samsung.com>
drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c