USB: EHCI: use hrtimer for controller death
authorAlan Stern <stern@rowland.harvard.edu>
Wed, 11 Jul 2012 15:22:31 +0000 (11:22 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Jul 2012 23:54:25 +0000 (16:54 -0700)
commitbf6387bcd16975ba8952b094f262a359d74e1c8a
treeac578ff256a5cd972c5866525c65e44e4360974e
parentdf2022553dd8d34d49e16c19d851ea619438f0ef
USB: EHCI: use hrtimer for controller death

This patch (as1578) adds an hrtimer event to handle the death of an
EHCI controller.  When a controller dies, it doesn't necessarily stop
running right away.  The new event polls at 1-ms intervals to see when
all activity has safely stopped.  This replaces a busy-wait polling
loop in the current code.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-hcd.c
drivers/usb/host/ehci-timer.c
drivers/usb/host/ehci.h