]> git.itanic.dy.fi Git - linux-stable/commit
xhci: Use delayed_work instead of timer for command timeout
authorOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Tue, 3 Jan 2017 16:28:50 +0000 (18:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Jan 2017 10:22:47 +0000 (11:22 +0100)
commitce737ba8e23e36bc7d921a68b225781b2d040019
treef94d5a271b38985bcaf5cfbcda1a5687ba71b64a
parentb07b4fa725002a92692d5b4d028b81b43c4516c5
xhci: Use delayed_work instead of timer for command timeout

commit cb4d5ce588c5ff68e0fdd30370a0e6bc2c0a736b upstream.

This is preparation to fix abort operation race (See "xhci: Fix race
related to abort operation"). To make timeout sleepable, use
delayed_work instead of timer.

[change a newly added pending timer fix to pending work -Mathias]
Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-mem.c
drivers/usb/host/xhci-ring.c
drivers/usb/host/xhci.h