linux/drivers/usb/gadget
Takashi Iwai 9f0fb11264 usb: gadget: midi2: Fix incorrect default MIDI2 protocol setup
commit 3eb27d3e32 upstream.

The MIDI2 gadget driver handled the default MIDI protocol version
incorrectly due to the confusion of the protocol version passed via
configfs (either 1 or 2) and UMP protocol bits (0x100 / 0x200).
As a consequence, the default protocol always resulted in MIDI1.

This patch addresses the misunderstanding of the protocol handling.

Fixes: 29ee7a4ddd ("usb: gadget: midi2: Add configfs support")
Cc: stable <stable@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20240708095719.25627-1-tiwai@suse.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-07-27 11:34:09 +02:00
..
function usb: gadget: midi2: Fix incorrect default MIDI2 protocol setup 2024-07-27 11:34:09 +02:00
legacy usb: gadget: webcam: Make g_webcam loadable again 2024-01-25 15:35:53 -08:00
udc usb: gadget: aspeed_udc: fix device address configuration 2024-07-05 09:33:59 +02:00
composite.c usb: gadget: composite: fix OS descriptors w_value logic 2024-05-17 12:02:28 +02:00
config.c usb: gadget: config: remove max speed check in usb_assign_descriptors() 2023-08-22 14:48:33 +02:00
configfs.c usb: gadget: configfs: Prevent OOB read/write in usb_string_copy() 2024-07-18 13:21:19 +02:00
configfs.h
epautoconf.c
functions.c
Kconfig usb: gadget: Add support for USB MIDI 2.0 function driver 2023-07-26 06:38:14 +02:00
Makefile usb: gadget: Makefile: remove ccflags-y 2022-03-18 12:56:08 +01:00
u_f.c
u_f.h
u_os_desc.h
usbstring.c