ANDROID: usb: Optimization the transfer rate of accessory mode in USB3.2 mode

BmAttributes controls the maximum number of streams supported by the endpoint.
streaming is a data transmission mode that allows multiple data packets
to be sent simultaneously in one transmission cycle.

Set bmAttributes to 16, bulk endpoint with more than 65536 streams,
can effectively improve data throughput.

Modify bmAttributes to 16.
The 5Gbps peak rate increases from 350MB/s to 400MB/s.
The 10Gbps peak rate is increased from 500MB/s to 600MB/s.

Bug: 373314134

Change-Id: I4b6c9554ff39a7b2222461e1949825dd6148c006
Signed-off-by: Lianqin Hu <hulianqin@vivo.corp-partner.google.com>
Signed-off-by: Lianqin Hu <hulianqin@vivo.com>
(cherry picked from commit 1fe91f863a7f6adfb5a0670df464283a7a0647f6)
Signed-off-by: Lianqin Hu <hulianqin@vivo.com>
This commit is contained in:
Lianqin Hu 2024-10-14 18:02:04 +08:00 committed by Lianqin Hu
parent 51b9e859a4
commit f22586e750

View File

@ -171,7 +171,7 @@ static struct usb_ss_ep_comp_descriptor acc_superspeedplus_comp_desc = {
/* the following 2 values can be tweaked if necessary */
.bMaxBurst = 6,
/* .bmAttributes = 0, */
.bmAttributes = 16,
};
static struct usb_endpoint_descriptor acc_superspeed_in_desc = {
@ -196,7 +196,7 @@ static struct usb_ss_ep_comp_descriptor acc_superspeed_comp_desc = {
/* the following 2 values can be tweaked if necessary */
.bMaxBurst = 6,
/* .bmAttributes = 0, */
.bmAttributes = 16,
};
static struct usb_endpoint_descriptor acc_highspeed_in_desc = {