Commit 6581a0bf authored by Jing Leng's avatar Jing Leng Committed by Jack Pham
Browse files

FROMLIST: usb: gadget: f_uac2: fix superspeed transfer

On page 362 of the USB3.2 specification (
https://usb.org/sites/default/files/usb_32_20210125.zip

),
The 'SuperSpeed Endpoint Companion Descriptor' shall only be returned
by Enhanced SuperSpeed devices that are operating at Gen X speed.
Each endpoint described in an interface is followed by a 'SuperSpeed
Endpoint Companion Descriptor'.

If users use SuperSpeed UDC, host can't recognize the device if endpoint
doesn't have 'SuperSpeed Endpoint Companion Descriptor' followed.

Currently in the uac2 driver code:
1. ss_epout_desc_comp follows ss_epout_desc;
2. ss_epin_fback_desc_comp follows ss_epin_fback_desc;
3. ss_epin_desc_comp follows ss_epin_desc;
4. Only ss_ep_int_desc endpoint doesn't have 'SuperSpeed Endpoint
Companion Descriptor' followed, so we should add it.

Fixes: eaf6cbe0 ("usb: gadget: f_uac2: add volume and mute support")
Signed-off-by: default avatarJing Leng <jleng@ambarella.com>
Signed-off-by: default avatarJack Pham <quic_jackp@quicinc.com>

Bug: 242138786
Link: https://lore.kernel.org/linux-usb/20220721014815.14453-1-quic_jackp@quicinc.com/


Change-Id: I56ff9a6b4956dd4c4fb14742d5f41cd06ad7c84a
Signed-off-by: default avatarJack Pham <quic_jackp@quicinc.com>
parent e2c216a2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment