usb: host: xhci-tegra: Use CNR as firmware ready indicator
authorThierry Reding <treding@nvidia.com>
Fri, 6 Dec 2019 14:06:47 +0000 (15:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Dec 2019 10:36:27 +0000 (11:36 +0100)
commit482ba7a6b42fa87dc8fa7d8c6140a916d0506549
tree8a57337f907fbcccca0d894cabc370d6ff6228aa
parentec12ac10c9a7e2f1edf15c488e54f4c813cf0f52
usb: host: xhci-tegra: Use CNR as firmware ready indicator

The Falcon CPU state is a suboptimal indicator for firmware readiness,
since the Falcon can be in a running state if the firmware is handling
port state changes or running other tasks. Instead, the driver should
check the STS_CNR bit to determine whether or not the firmware has been
successfully loaded and is ready for XHCI operation.

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-5-thierry.reding@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-tegra.c