coreboot-kgpe-d16/payloads
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
..
bayou bayou: delete pbuilder utility 2016-07-30 19:34:36 +02:00
coreinfo build system: don't run xcompile or git for %clean/%config targets 2017-01-24 23:22:56 +01:00
external payloads/seabios: Add support for Hudson UART 2017-02-28 14:12:22 +01:00
libpayload libpayload: usbhub: Force enumeration of all connected ports on init 2017-03-15 00:54:23 +01:00
nvramcui nvramcui: Add USB support 2017-03-13 17:11:12 +01:00
Kconfig payloads: add Kconfig option for bayou 2016-08-09 10:44:44 +02:00
Makefile.inc tint: Fix tint and add Kconfig option 2016-06-28 18:29:48 +02:00