]> git.kernelconcepts.de Git - karo-tx-uboot.git/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)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 12:05:52 +0000 (14:05 +0200)
commitd5af7f692dbad9c87803786d9a4f1f2b9cbaaeae
tree93202316936106818cb3910fe86f73cea4c1504c
parent04cf842b5d80c62f8685b6d65c0b7f94519f839b
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