]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
usb: xhci: fix timeout for transition from RExit to U0
authorAaron Ma <aaron.ma@canonical.com>
Wed, 28 Nov 2018 15:29:00 +0000 (16:29 +0100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 14 Jan 2019 09:28:55 +0000 (09:28 +0000)
commit6153d5d7f1edd629a61c13bacdfbcf260c8800f0
tree6350a4e1038faa2a5c73cbef31af49a60db69c40
parent7db53e7b4775c7d14a4610d11bbebaec311eb110
usb: xhci: fix timeout for transition from RExit to U0

BugLink: https://bugs.launchpad.net/bugs/1805344
This definition is used by msecs_to_jiffies in milliseconds.
According to the comments, max rexit timeout should be 20ms.
Align with the comments to properly calculate the delay.

Verified on Sunrise Point-LP and Cannon Lake.

Cc: stable@vger.kernel.org
Signed-off-by: Aaron Ma <aaron.ma@canonical.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit a5baeaeabcca3244782a9b6382ebab6f8a58f583)
Signed-off-by: Aaron Ma <aaron.ma@canonical.com>
Acked-By: AceLan Kao <acelan.kao@canonical.com>
Acked-by: Hui Wang <hui.wang@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/usb/host/xhci-hub.c
drivers/usb/host/xhci.h