]> Git Repo - linux.git/commit
xhci: Convert xhci_handshake() to use readl_poll_timeout_atomic()
authorAndrey Smirnov <[email protected]>
Wed, 22 May 2019 11:34:01 +0000 (14:34 +0300)
committerGreg Kroah-Hartman <[email protected]>
Wed, 22 May 2019 12:25:37 +0000 (14:25 +0200)
commitf7fac17ca925faa03fc5eb854c081a24075f8bad
treef0c670f934839305bbae2d368695187b2725f334
parent13b82b746310b51b064bc855993a1c84bf862726
xhci: Convert xhci_handshake() to use readl_poll_timeout_atomic()

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 <[email protected]>
Tested-by: Raul E Rangel <[email protected]>
Reviewed-by: Raul E Rangel <[email protected]>
Cc: <[email protected]>
Signed-off-by: Mathias Nyman <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/usb/host/xhci.c
This page took 0.052927 seconds and 4 git commands to generate.