[PATCH] drivers: usb: fastboot: Fix full-speed usb descriptor

John Keeping john at metanate.com
Mon Aug 22 12:01:21 CEST 2022


On Mon, Aug 22, 2022 at 09:18:31AM +0800, qianfanguijin at 163.com wrote:
> From: qianfan Zhao <qianfanguijin at 163.com>
> 
> The host will report such error message if the fastboot device work in
> full-speed mode: "Duplicate descriptor for config 1 interface 0
> altsetting 0, skipping"
> 
> Fastboot device ack both full and high speed interface descriptors when
> work in full-speed mode, that's will cause this issue.
> 
> Fix it.
> 
> Signed-off-by: qianfan Zhao <qianfanguijin at 163.com>

Reviewed-by: John Keeping <john at metanate.com>

> ---
>  drivers/usb/gadget/f_fastboot.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c
> index 8ba55aab9f..d0e92c7a07 100644
> --- a/drivers/usb/gadget/f_fastboot.c
> +++ b/drivers/usb/gadget/f_fastboot.c
> @@ -119,6 +119,7 @@ static struct usb_descriptor_header *fb_fs_function[] = {
>  	(struct usb_descriptor_header *)&interface_desc,
>  	(struct usb_descriptor_header *)&fs_ep_in,
>  	(struct usb_descriptor_header *)&fs_ep_out,
> +	NULL,
>  };
>  
>  static struct usb_descriptor_header *fb_hs_function[] = {
> -- 
> 2.25.1
> 


More information about the U-Boot mailing list