kernel_samsung_a53x/drivers/usb/gadget/udc
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
..
aspeed-vhub Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bdc Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
amd5536udc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
amd5536udc_pci.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
at91_udc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
at91_udc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
atmel_usba_udc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
atmel_usba_udc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bcm63xx_udc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
core.c USB: gadget: core: adjust uevent timing on gadget unbind 2024-11-18 12:11:57 +01:00
dummy_hcd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fotg210-udc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fotg210.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsl_mxc_udc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsl_qe_udc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsl_qe_udc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsl_udc_core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsl_usb2_udc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fusb300_udc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fusb300_udc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
goku_udc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
goku_udc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gr_udc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gr_udc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpc32xx_udc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
m66592-udc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
m66592-udc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
max3420_udc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mv_u3d.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mv_u3d_core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mv_udc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mv_udc_core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
net2272.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
net2272.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
net2280.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
net2280.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
omap_udc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
omap_udc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pch_udc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pxa25x_udc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pxa25x_udc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pxa27x_udc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pxa27x_udc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
r8a66597-udc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
r8a66597-udc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
renesas_usb3.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
s3c-hsudc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
s3c2410_udc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
s3c2410_udc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
s3c2410_udc_regs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
snps_udc_core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
snps_udc_plat.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tegra-xudc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trace.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trace.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
udc-xilinx.c usb: gadget: udc-xilinx: replace memcpy with memcpy_toio 2024-11-08 11:25:51 +01:00