linux_dsm_epyc7002/drivers/usb/core
Christian Lamparter 91f7d2e898 USB: leds: fix regression in usbport led trigger
The patch "usb: simplify usbport trigger" together with "leds: triggers:
add device attribute support" caused an regression for the usbport
trigger. it will no longer enumerate any active usb hub ports under the
"ports" directory in the sysfs class directory, if the usb host drivers
are fully initialized before the usbport trigger was loaded.

The reason is that the usbport driver tries to register the sysfs
entries during the activate() callback. And this will fail with -2 /
ENOENT because the patch "leds: triggers: add device attribute support"
made it so that the sysfs "ports" group was only being added after the
activate() callback succeeded.

This version of the patch reverts parts of the "usb: simplify usbport
trigger" patch and restores usbport trigger's functionality.

Fixes: 6f7b0bad88 ("usb: simplify usbport trigger")
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Cc: stable <stable@vger.kernel.org>
Acked-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-01-18 09:55:05 +01:00
..
buffer.c
config.c
devices.c Remove 'type' argument from access_ok() function 2019-01-03 18:57:57 -08:00
devio.c Remove 'type' argument from access_ok() function 2019-01-03 18:57:57 -08:00
driver.c
endpoint.c
file.c
generic.c usbcore: Select only first configuration for non-UAC3 compliant devices 2019-01-07 17:23:30 +01:00
hcd-pci.c
hcd.c usb: core: Remove unnecessary memset() 2018-12-12 12:38:41 +01:00
hub.c Merge 4.20-rc6 into usb-next 2018-12-10 10:19:08 +01:00
hub.h
Kconfig
ledtrig-usbport.c USB: leds: fix regression in usbport led trigger 2019-01-18 09:55:05 +01:00
Makefile
message.c
notify.c
of.c
otg_whitelist.h
phy.c
phy.h
port.c
quirks.c USB: Add USB_QUIRK_DELAY_CTRL_MSG quirk for Corsair K70 RGB 2019-01-07 17:29:28 +01:00
sysfs.c
urb.c
usb-acpi.c
usb.c
usb.h