usb: host: xhci-tegra: Avoid a fixed duration sleep
authorThierry Reding <treding@nvidia.com>
Fri, 6 Dec 2019 14:06:46 +0000 (15:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Dec 2019 10:36:26 +0000 (11:36 +0100)
commitec12ac10c9a7e2f1edf15c488e54f4c813cf0f52
tree23a4e046d009ae337512f4bf9b2335a832613813
parent741d6e5d84f30266694ca23641f1d028b55f7f40
usb: host: xhci-tegra: Avoid a fixed duration sleep

Do not use a fixed duration sleep to wait for the DMA controller to
become ready. Instead, poll the L2IMEMOP_RESULT register for the VLD
flag to determine when the XUSB controller's DMA master is ready.

Based on work by JC Kuo <jckuo@nvidia.com>.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20191206140653.2085561-4-thierry.reding@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-tegra.c