linux-stable/drivers/usb/gadget
Roy Luo 9a3e020630 USB: gadget: core: adjust uevent timing on gadget unbind
commit 73ea73affe upstream.

The KOBJ_CHANGE uevent is sent before gadget unbind is actually
executed, resulting in inaccurate uevent emitted at incorrect timing
(the uevent would have USB_UDC_DRIVER variable set while it would
soon be removed).
Move the KOBJ_CHANGE uevent to the end of the unbind function so that
uevent is sent only after the change has been made.

Fixes: 2ccea03a8f ("usb: gadget: introduce UDC Class")
Cc: stable@vger.kernel.org
Signed-off-by: Roy Luo <royluo@google.com>
Link: https://lore.kernel.org/r/20231128221756.2591158-1-royluo@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-12-13 18:45:33 +01:00
..
function usb: gadget: f_hid: fix report descriptor allocation 2023-12-13 18:45:31 +01:00
legacy usb: raw-gadget: properly handle interrupted requests 2023-11-08 11:56:22 +01:00
udc USB: gadget: core: adjust uevent timing on gadget unbind 2023-12-13 18:45:33 +01:00
composite.c usb: gadget: composite: cleanup function config_ep_by_speed_and_alt() 2023-08-22 14:48:33 +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: Properly configure the device for remote wakeup 2023-03-29 10:27:00 +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
u_f.c
u_f.h
u_os_desc.h
usbstring.c