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

Commit bb833da2 authored by Hemant Kumar's avatar Hemant Kumar
Browse files

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: default avatarHemant Kumar <hemantk@codeaurora.org>
parent c6010d1f
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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;