usb: xhci: Don't assume LS/FS devices are always behind a HS hub
authorBin Meng <bmeng.cn@gmail.com>
Mon, 18 Sep 2017 13:40:39 +0000 (06:40 -0700)
committerMarek Vasut <marex@denx.de>
Sun, 1 Oct 2017 14:32:52 +0000 (16:32 +0200)
commit8a0e6d83070a977442aaba2c5a74cbe34e157012
treebb0d2d593d27022758b387515b893bae6fe8854d
parentf4d4f7d41cec8c8bfe0fc60d13da059839a56671
usb: xhci: Don't assume LS/FS devices are always behind a HS hub

At present xHCI driver assumes LS/FS devices are attached directly
to a HS hub. If they are connected to a LS/FS hub, the driver will
fail to perform the USB enumeration process on such devices.

This is fixed by looking from the device itself all the way up to
the HS hub where the TT that serves the device is located.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
drivers/usb/host/xhci-mem.c