usb: xhci: fix timeout for transition from RExit to U0
authorAaron Ma <aaron.ma@canonical.com>
Fri, 9 Nov 2018 15:21:21 +0000 (17:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Nov 2018 16:31:09 +0000 (08:31 -0800)
commita5baeaeabcca3244782a9b6382ebab6f8a58f583
treea9f3ef3d2f0254878dec4dbd3b2891e5a12141a9
parent958c0bd86075d4ef1c936998deefe1947e539240
usb: xhci: fix timeout for transition from RExit to U0

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>
drivers/usb/host/xhci-hub.c
drivers/usb/host/xhci.h