]> git.baikalelectronics.ru Git - kernel.git/commit
xhci: Fix USB 3.1 enumeration issues by increasing roothub power-on-good delay
authorMathias Nyman <mathias.nyman@linux.intel.com>
Fri, 5 Nov 2021 16:00:36 +0000 (18:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Nov 2021 14:41:03 +0000 (15:41 +0100)
commit409c14d69c950cb69a999eeef28fa386e29488cb
tree29e9818b00d9ffa45ac1a050aaa40d299c5ce3ff
parenteb9b2faa22b1aa0bfc0411757e6b844f0c41e0d4
xhci: Fix USB 3.1 enumeration issues by increasing roothub power-on-good delay

Some USB 3.1 enumeration issues were reported after the hub driver removed
the minimum 100ms limit for the power-on-good delay.

Since commit db4a0c5c49a6 ("usb: core: reduce power-on-good delay time of
root hub") the hub driver sets the power-on-delay based on the
bPwrOn2PwrGood value in the hub descriptor.

xhci driver has a 20ms bPwrOn2PwrGood value for both roothubs based
on xhci spec section 5.4.8, but it's clearly not enough for the
USB 3.1 devices, causing enumeration issues.

Tests indicate full 100ms delay is needed.

Reported-by: Walt Jr. Brake <mr.yming81@gmail.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Fixes: db4a0c5c49a6 ("usb: core: reduce power-on-good delay time of root hub")
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20211105160036.549516-1-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-hub.c