Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 53c0c5fa authored by Mayank Rana's avatar Mayank Rana
Browse files

usb: gadget: Add USB super speed companion descriptor



HID charger function is not enumerating with connected host in
super speed due to missing super speed companion descriptor.
Hence add super speed companion descriptor to fix this issue.

Change-Id: I7d7d55adb364544f5eedacc10c463d3051eb799b
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
parent ec7db6c5
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -70,10 +70,19 @@ static struct usb_endpoint_descriptor charger_ss_in_ep_desc = {
	.bInterval		= 16,
};

static struct usb_ss_ep_comp_descriptor charger_ss_intr_comp_desc = {
	.bLength		= sizeof(charger_ss_intr_comp_desc),
	.bDescriptorType	= USB_DT_SS_ENDPOINT_COMP,
	/* the following 2 values can be tweaked if necessary */
	/* .bMaxBurst		= 0, */
	/* .bmAttributes	= 0, */
};

static struct usb_descriptor_header *charger_ss_descriptors[] = {
	(struct usb_descriptor_header *)&charger_interface_desc,
	(struct usb_descriptor_header *)&charger_hid_desc,
	(struct usb_descriptor_header *)&charger_ss_in_ep_desc,
	(struct usb_descriptor_header *)&charger_ss_intr_comp_desc,
	NULL,
};