# Re: \[PATCH\] xhci: Fix USB 3.1 enumeration issues by increasing roothub power-on-good delay

- From: Mathias Nyman \<hidden\>
- Date: 2021-11-05 16:13:54 
- List: linux-mediatek
- Page: https://ratatoskr.run/linux-mediatek/2021/11/1564013
- Thread: https://ratatoskr.run/linux-usb/2021/11/1559781/t.md

```text
On 5.11.2021 18.00, Mathias Nyman wrote:
> 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 90d28fb53d4a ("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 <redacted>
> Signed-off-by: Mathias Nyman <redacted>
> 

Walt Jr Brake, just to be sure could you test this one as well?

As Alan suggested this sets 100ms for the USB 3 roothub but
keeps the 20ms for the USB 2 roothub.

Thanks
-Mathias 

_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
```
