mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
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:
parent
17c22334d7
commit
e52d0ec388
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue