Searched hist:"204 f1379834a139feeaeb30cd85844cedd2e29d6" (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/drivers/usb/gadget/ |
| H A D | composite.c | 204f1379834a139feeaeb30cd85844cedd2e29d6 Thu Dec 13 09:46:36 UTC 2018 Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com> UPSTREAM: 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.
Conflicts: drivers/usb/gadget/composite.c
Change-Id: I6aff8e97637d788f309273f0c0afb49dbb71001d Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> (cherry picked from commit 771e76515ed5abe7eff73a54ccb0c9ae55f34388)
|