Commit 6cc1dacf authored by hulianqin's avatar hulianqin Committed by Lianqin Hu
Browse files

ANDROID: usb: Optimize the problem of slow transfer rate in USB accessory mode



The data transfer rate using Google Restore in USB3.2 mode is slower,
only about 140MB/s at 5Gbps.

The bMaxBurst is not set, and num_fifos in
dwc3_gadget_resize_tx_fifosis 1, which results
in only 131btye of dwc3 ram space being allocated to ep.

Modify bMaxBurst to 6.
The 5Gbps rate increases from 140MB/s to 350MB/s.
The 10Gbps rate is increased from 220MB/s to 500MB/s.

Bug: 340049583
BUG: 341178033

Change-Id: I5710af32c72d0b57afaecc00c4f0909af4b9a299
Signed-off-by: default avatarLianqin Hu <hulianqin@vivo.corp-partner.google.com>
Signed-off-by: default avatarLianqin Hu <hulianqin@vivo.com>
(cherry picked from commit 17000de1d66e29709b0a03993e9541b41c59a96c)
Signed-off-by: default avatarLianqin Hu <hulianqin@vivo.com>
parent edafa7e5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment