summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorqianfan Zhao <qianfanguijin@163.com>2022-08-22 04:18:31 +0300
committerMarek Vasut <marex@denx.de>2022-09-02 14:26:58 +0300
commit2522bd3ea67d6e22259cf363eeb3822a358b50d6 (patch)
tree841181652a620864013955450970dfef4e7e1357 /drivers/usb
parent4e10c1227aa879af809b3073bf917289f23e17d7 (diff)
downloadu-boot-2522bd3ea67d6e22259cf363eeb3822a358b50d6.tar.xz
drivers: usb: fastboot: Fix full-speed usb descriptor
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@163.com> Reviewed-by: John Keeping <john@metanate.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/gadget/f_fastboot.c1
1 files changed, 1 insertions, 0 deletions
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[] = {