aboutsummaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>2018-12-13 15:16:36 +0530
committerMarek Vasut <marex@denx.de>2018-12-14 17:59:10 +0100
commit771e76515ed5abe7eff73a54ccb0c9ae55f34388 (patch)
tree59c5949a33e471532ed36fc66a3b18940497e075 /board
parent5d060ec0dc02258608c8796a18d3f7bc45ff4494 (diff)
downloadu-boot-771e76515ed5abe7eff73a54ccb0c9ae55f34388.zip
u-boot-771e76515ed5abe7eff73a54ccb0c9ae55f34388.tar.gz
u-boot-771e76515ed5abe7eff73a54ccb0c9ae55f34388.tar.bz2
usb: composite: Fix max packet size for USB3.0
For USB3.0, the max packetsize for GET_DESCRIPTOR should be sent as exponent value for 2. This means for 512, max packet size should be filled with 9(2^9=512). Also, fill the USB version field with 3.0 if speed is negotiated to Superspeed. This fixes the issue of DFU gadget download failure with superspeed. Without this patch, the max packet size is overflowed to zero as the bMaxPacketsize is of u8 and hence host is not able to detect this device. Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'board')
0 files changed, 0 insertions, 0 deletions