diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2019-05-22 14:34:01 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-06-09 10:18:13 +0300 |
commit | e0847376ec4436bbfdbc3b232f0a9e6c3acdce4d (patch) | |
tree | f22cb8976a59caeaec1075db2b8a4540efec8c3c /Documentation/memory-hotplug.txt | |
parent | 1b2eabf811d2cd6984c7e2a209106a257eaabc0c (diff) | |
download | linux-e0847376ec4436bbfdbc3b232f0a9e6c3acdce4d.tar.xz |
xhci: Convert xhci_handshake() to use readl_poll_timeout_atomic()
commit f7fac17ca925faa03fc5eb854c081a24075f8bad upstream.
Xhci_handshake() implements the algorithm already captured by
readl_poll_timeout_atomic(). Convert the former to use the latter to
avoid repetition.
Turned out this patch also fixes a bug on the AMD Stoneyridge platform
where usleep(1) sometimes takes over 10ms.
This means a 5 second timeout can easily take over 15 seconds which will
trigger the watchdog and reboot the system.
[Add info about patch fixing a bug to commit message -Mathias]
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Tested-by: Raul E Rangel <rrangel@chromium.org>
Reviewed-by: Raul E Rangel <rrangel@chromium.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/memory-hotplug.txt')
0 files changed, 0 insertions, 0 deletions