]> git.sur5r.net Git - u-boot/commit
fastboot: OUT transaction length must be aligned to wMaxPacketSize
authorDileep Katta <dileep.katta@linaro.org>
Mon, 16 Feb 2015 20:32:36 +0000 (02:02 +0530)
committerMarek Vasut <marex@denx.de>
Wed, 25 Feb 2015 16:47:02 +0000 (17:47 +0100)
commit9e4b510d40310bf46e09f4edd0a0b6356213df47
tree5e4f0df82cc2fd763a493c9f06af6043e2ecfe3b
parent7c23bcb93fd44026c737c0f102262f98b5a08ea9
fastboot: OUT transaction length must be aligned to wMaxPacketSize

OUT transactions must be aligned to wMaxPacketSize for each transfer,
or else transfer will not complete successfully. This patch modifies
rx_bytes_expected to return a transfer length that is aligned to
wMaxPacketSize.

Note that the value of wMaxPacketSize and ep->maxpacket may not be
the same value, and it is the value of wMaxPacketSize that should be
used for alignment. wMaxPacketSize is passed depending on the speed of
connection.

Signed-off-by: Dileep Katta <dileep.katta@linaro.org>
Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>
drivers/usb/gadget/f_fastboot.c