usb: gadget: Add super speed plus desc for midi function

midi device enumeration is failing in super speed plus
mode because function driver does not pass super speed
plus desc.

Change-Id: Iebfab054c3bdb3a326d585de9d106a01a3dd9877
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
This commit is contained in:
Hemant Kumar 2019-03-21 12:08:56 -07:00 • committed by Gerrit - the friendly Code Review server
commit e52d0ec388

View file

@ -1050,6 +1050,12 @@ static int f_midi_bind(struct usb_configuration *c, struct usb_function *f)
goto fail_f_midi;
}
if (gadget_is_superspeed_plus(c->cdev->gadget)) {
f->ssp_descriptors = usb_copy_descriptors(midi_function);
if (!f->ssp_descriptors)
goto fail_f_midi;
}
kfree(midi_function);
return 0;