coreboot-kgpe-d16/payloads/libpayload/drivers/usb
Julius Werner 5fae829410 libpayload: usbhub: Force enumeration of all connected ports on init
We have found a non-compliant USB hub (RealTek RTS 5413) that does not
set a port's Connect Status Change bit on its USB 3.0 half if the port
had already been connected while the hub was being reset. To work around
this bug, this patch adds code to initially request the status of every
port after a hub was enumerated, clear the Connect Status Change bit if
set, and then enumerate the port iff it is currently connected,
regardless of whether the change bit was set. A similar behavior can
also be found in the Linux kernel.

BRANCH=oak
BUG=b:35929438
TEST=Booted Elm with this change, my USB 3.0 sticks enumerate now even
if they had been plugged in since boot.

Change-Id: I8a28252eb94f005f04866d06e4fc61ea265cee89
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/18729
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
2017-03-15 00:54:23 +01:00
..
Kconfig libpayload: Reintroduce CONFIG_LP_CHROMEOS to set suitable defaults 2016-10-17 22:46:11 +02:00
TODO
dwc2.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
dwc2.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
dwc2_private.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
dwc2_rh.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
ehci.c libpayload: usb: dwc2: support split transaction 2015-07-16 22:39:59 +02:00
ehci.h
ehci_private.h
ehci_rh.c
generic_hub.c
generic_hub.h
ohci.c libpayload: usb: Reset ohci controller when trying to shutdown ohci 2017-01-13 17:40:25 +01:00
ohci.h
ohci_private.h
ohci_rh.c
quirks.c
uhci.c
uhci.h
uhci_private.h
uhci_rh.c
usb.c libpayload: usb: handle situation with no free device address 2017-01-06 18:43:05 +01:00
usb_dev.c
usbhid.c libpayload: Make Kconfig bools use IS_ENABLED() 2015-06-30 18:55:15 +02:00
usbhub.c libpayload: usbhub: Force enumeration of all connected ports on init 2017-03-15 00:54:23 +01:00
usbinit.c libpayload: Make Kconfig bools use IS_ENABLED() 2015-06-30 18:55:15 +02:00
usbmsc.c libpayload: usbmsc: Add small delay during initialization to fix CZ60 2015-10-29 21:06:45 +01:00
xhci.c libpayload: usb: xhci: Support rockchip xHCI controller 2016-06-12 12:09:55 +02:00
xhci.h
xhci_commands.c
xhci_debug.c libpayload: usb: Add support for SuperSpeed hubs 2015-07-18 09:40:48 +02:00
xhci_devconf.c libpayload: xhci: plug leak 2017-01-06 18:42:18 +01:00
xhci_events.c libpayload: xhci: Carry over fixes from Chromium tree 2015-08-14 15:14:09 +02:00
xhci_private.h libpayload: usb: xhci: Support rockchip xHCI controller 2016-06-12 12:09:55 +02:00
xhci_rh.c libpayload: usb: xhci: Fix list of cleared port change bits 2015-08-14 15:18:16 +02:00