linux/drivers/usb/gadget/function
Takashi Iwai 21d8525d2e usb: gadget: midi2: Fix missing UMP group attributes initialization
The gadget card driver forgot to call snd_ump_update_group_attrs()
after adding FBs, and this leaves the UMP group attributes
uninitialized.  As a result, -ENODEV error is returned at opening a
legacy rawmidi device as an inactive group.

This patch adds the missing call to address the behavior above.

Fixes: 8b645922b2 ("usb: gadget: Add support for USB MIDI 2.0 function driver")
Cc: stable <stable@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20250904153932.13589-1-tiwai@suse.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-09-06 15:30:33 +02:00
..
f_acm.c usb: gadget: f_acm: make bInterfaceProtocol configurable 2024-09-03 09:54:16 +02:00
f_ecm.c usb: gadget: f_ecm: Add get_status callback 2025-05-01 17:38:41 +02:00
f_eem.c usb: gadget: add missing MODULE_DESCRIPTION() macros 2024-06-20 19:18:19 +02:00
f_fs.c USB / Thunderbolt changes for 6.17-rc1 2025-07-29 10:17:10 -07:00
f_hid.c USB: gadget: f_hid: Fix memory leak in hidg_bind error path 2025-07-07 11:03:33 +02:00
f_loopback.c usb: gadget: function: move u_f.h to include/linux/usb/func_utils.h 2024-09-03 09:57:08 +02:00
f_mass_storage.c scsi: usb: Rename the RESERVE and RELEASE constants 2025-02-12 22:20:55 -05:00
f_mass_storage.h USB: gadget: fix up const issue with struct usb_function_instance 2025-05-23 12:31:34 +02:00
f_midi.c USB: gadget: f_midi: f_midi_complete to call queue_work 2025-02-14 09:24:20 +01:00
f_midi2.c usb: gadget: midi2: Fix missing UMP group attributes initialization 2025-09-06 15:30:33 +02:00
f_ncm.c usb: gadget: Switch to use hrtimer_setup() 2025-02-18 11:19:02 +01:00
f_obex.c usb: gadget: add missing MODULE_DESCRIPTION() macros 2024-06-20 19:18:19 +02:00
f_phonet.c usb: gadget: add missing MODULE_DESCRIPTION() macros 2024-06-20 19:18:19 +02:00
f_printer.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
f_rndis.c usb: gadget: add missing MODULE_DESCRIPTION() macros 2024-06-20 19:18:19 +02:00
f_serial.c usb: gadget: u_serial: Implement remote wakeup capability 2025-04-25 13:42:04 +02:00
f_sourcesink.c usb: gadget: function: move u_f.h to include/linux/usb/func_utils.h 2024-09-03 09:57:08 +02:00
f_subset.c usb: gadget: add missing MODULE_DESCRIPTION() macros 2024-06-20 19:18:19 +02:00
f_tcm.c usb: potential integer overflow in usbg_make_tpg() 2025-04-15 14:29:33 +02:00
f_uac1.c usb: gadget: f_uac1: replace scnprintf() with sysfs_emit() 2025-07-21 16:31:28 +02:00
f_uac1_legacy.c usb: gadget: add missing MODULE_DESCRIPTION() macros 2024-06-20 19:18:19 +02:00
f_uac2.c usb: gadget: f_uac2: replace scnprintf() with sysfs_emit() 2025-07-07 11:05:30 +02:00
f_uvc.c usb: gadget: uvc: rework to enqueue in pump worker from encoded queue 2024-10-17 08:42:22 +02:00
f_uvc.h usb: gadget: uvc: prevent use of disabled endpoint 2023-11-23 12:32:44 +00:00
g_zero.h
Makefile usb: gadget: uvc: add trace of enqueued and completed requests 2024-10-17 08:42:23 +02:00
ndis.h
rndis.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
rndis.h
storage_common.c usb: gadget: add missing MODULE_DESCRIPTION() macros 2024-06-20 19:18:19 +02:00
storage_common.h usb: storage: add a macro for the upper limit of max LUN 2024-12-04 16:33:54 +01:00
tcm.h usb: gadget: f_tcm: Stall on invalid CBW 2024-12-24 08:56:07 +01:00
u_audio.c Merge 6.11-rc3 into usb-next 2024-08-12 18:49:00 +02:00
u_audio.h
u_ecm.h
u_eem.h
u_ether.c usb: gadget: u_ether: Set is_suspend flag if remote wakeup fails 2025-02-19 15:18:41 +01:00
u_ether.h usb: gadget: add a inline function gether_bitrate() 2023-08-22 14:48:33 +02:00
u_ether_configfs.h
u_fs.h usb: gadget: ffs: remove ENTER() macro 2023-03-29 08:55:58 +02:00
u_gether.h
u_hid.h usb: gadget: hid: allow dynamic interval configuration via configfs 2025-05-01 17:30:48 +02:00
u_midi.h
u_midi2.h usb: gadget: midi2: More flexible MIDI 1.0 configuration 2023-07-26 06:38:14 +02:00
u_ncm.h usb: gadget: ncm: Add support to update wMaxSegmentSize via configfs 2024-01-04 16:01:14 +01:00
u_phonet.h usb: gadget: function: Remove unused declarations 2023-08-22 14:45:29 +02:00
u_printer.h
u_rndis.h
u_serial.c Merge merge point of tag 'usb-6.16-rc5' into usb-next 2025-07-05 07:52:33 +02:00
u_serial.h usb: gadget: f_acm: make bInterfaceProtocol configurable 2024-09-03 09:54:16 +02:00
u_tcm.h
u_uac1.h usb: gadget: f_uac1: Change volume name and remove alt names 2024-08-13 18:11:35 +02:00
u_uac1_legacy.c usb: gadget: Replace runtime->status->state reference to runtime->state 2022-09-27 08:49:52 +02:00
u_uac1_legacy.h
u_uac2.h usb: gadget: f_uac2: Expose all string descriptors through configfs. 2024-08-13 10:37:05 +02:00
u_uvc.h usb: gadget: webcam: Make g_webcam loadable again 2023-12-15 18:27:38 +01:00
uac_common.h
uvc.h usb: gadget: uvc: set nbuffers to minimum STREAMING_MIN_BUFFERS in uvc_queue_setup 2024-10-17 08:42:23 +02:00
uvc_configfs.c usb: gadget: uvc: Initialize frame-based format color matching descriptor 2025-07-21 16:30:00 +02:00
uvc_configfs.h usb: gadget: uvc: Avoid -Wflex-array-member-not-at-end warnings 2025-04-11 16:08:33 +02:00
uvc_queue.c usb: gadget: uvc: drop vb2_ops_wait_prepare/finish 2025-02-03 16:28:42 +01:00
uvc_queue.h usb: gadget: uvc: set req_length based on payload by nreqs instead of req_size 2024-10-17 08:42:22 +02:00
uvc_trace.c usb: gadget: uvc: add trace of enqueued and completed requests 2024-10-17 08:42:23 +02:00
uvc_trace.h usb: gadget: uvc: add trace of enqueued and completed requests 2024-10-17 08:42:23 +02:00
uvc_v4l2.c usb: gadget: uvc: dont call usb_composite_setup_continue when not streaming 2024-10-17 08:42:23 +02:00
uvc_v4l2.h
uvc_video.c usb: gadget: uvc: Fix unstarted kthread worker 2025-02-14 09:26:00 +01:00
uvc_video.h usb: gadget: uvc: move video disable logic to its own function 2023-11-23 12:32:44 +00:00