kernel_samsung_a53x/drivers/usb/gadget
Roy Luo 81563ac0c8 USB: gadget: core: adjust uevent timing on gadget unbind
commit 73ea73affe8622bdf292de898da869d441da6a9d 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: 2ccea03a8f7e ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-18 12:11:57 +01:00
..
function usb: gadget: f_hid: fix report descriptor allocation 2024-11-18 12:11:45 +01:00
legacy usb: raw-gadget: properly handle interrupted requests 2024-11-18 10:58:48 +01:00
udc USB: gadget: core: adjust uevent timing on gadget unbind 2024-11-18 12:11:57 +01:00
composite.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
config.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
configfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
configfs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
epautoconf.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
functions.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
u_f.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
u_f.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
u_os_desc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
usbstring.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00