From ca24c52e3c25966dfb7d4f0784910cd661b44d43 Mon Sep 17 00:00:00 2001 From: Badhri Jagan Sridharan Date: Wed, 2 Apr 2025 20:13:04 +0000 Subject: [PATCH] Revert "ANDROID: usb: Optimization the transfer rate of accessory mode in USB3.2 mode" This reverts commit 1fe91f863a7f6adfb5a0670df464283a7a0647f6 as it breaks Desktop Head Unit of AA on macbooks when connected with Superspeed or faster cables. Test: Run DHU on mac with Superspeed cables. Bug: 401274795 Signed-off-by: Badhri Jagan Sridharan Change-Id: Ibdf6d9360aa65480831127bee1cc6554f4a5beb9 --- drivers/usb/gadget/function/f_accessory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/function/f_accessory.c b/drivers/usb/gadget/function/f_accessory.c index a8e1babb23a2..9a4aec8dbaf0 100644 --- a/drivers/usb/gadget/function/f_accessory.c +++ b/drivers/usb/gadget/function/f_accessory.c @@ -172,7 +172,7 @@ static struct usb_ss_ep_comp_descriptor acc_superspeedplus_comp_desc = { /* the following 2 values can be tweaked if necessary */ .bMaxBurst = 6, - .bmAttributes = 16, + /* .bmAttributes = 0, */ }; static struct usb_endpoint_descriptor acc_superspeed_in_desc = { @@ -197,7 +197,7 @@ static struct usb_ss_ep_comp_descriptor acc_superspeed_comp_desc = { /* the following 2 values can be tweaked if necessary */ .bMaxBurst = 6, - .bmAttributes = 16, + /* .bmAttributes = 0, */ }; static struct usb_endpoint_descriptor acc_highspeed_in_desc = {