]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/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)
committerLuis Henriques <luis.henriques@canonical.com>
Fri, 20 Jan 2017 11:26:40 +0000 (11:26 +0000)
commit2b0980442dcd18b4c1a2c3c53e7b422c300fbbf7
treeeaa9a9d1f4b20f4c3f7a4e0e1a6001507ffee27d
parent02bddc881486fe056b3c7198677c5c57eb982284
xhci: Use delayed_work instead of timer for command timeout

BugLink: http://bugs.launchpad.net/bugs/1655969
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>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
drivers/usb/host/xhci-mem.c
drivers/usb/host/xhci-ring.c
drivers/usb/host/xhci.h