kernel_samsung_a53x/drivers/usb
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
..
atm Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
c67x00 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cdns3 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
chipidea Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
class Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
common Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
core driver core: Move the "removable" attribute from USB to core 2024-11-18 12:11:13 +01:00
dwc2 USB: dwc2: write HCINT with INTMASK applied 2024-11-18 12:10:58 +01:00
dwc3 USB: dwc3: qcom: fix wakeup after probe deferral 2024-11-18 12:11:08 +01:00
early Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gadget USB: gadget: core: adjust uevent timing on gadget unbind 2024-11-18 12:11:57 +01:00
host Revert "xhci: Loosen RPM as default policy to cover for AMD xHC 1.1" 2024-11-18 12:11:45 +01:00
image Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
isp1760 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
misc Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mon Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mtu3 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
musb usb: musb: Modify the "HWVers" register address 2024-11-08 11:25:49 +01:00
notify Import A536BXXSAEXE1 2024-06-15 16:07:28 -03:00
notify_lsi Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
phy Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
renesas_usbhs Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
roles Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
serial USB: serial: option: don't claim interface 4 for ZTE MF290 2024-11-18 12:10:58 +01:00
storage usb: storage: set 1.50 as the lower bcdDevice for older "Super Top" compatibility 2024-11-18 10:58:47 +01:00
typec usb: typec: class: fix typec_altmode_put_partner to put plugs 2024-11-18 12:11:45 +01:00
usbip USB: usbip: fix stub_dev hub disconnect 2024-11-18 11:43:05 +01:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig.variant1 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile.variant1 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
usb-skeleton.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00