usb: xhci: remove the use of xhci->addr_dev
authorLu Baolu <baolu.lu@linux.intel.com>
Fri, 11 Nov 2016 13:13:30 +0000 (15:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Nov 2016 09:18:23 +0000 (10:18 +0100)
commit87e44f2aac8d45c1e48c94017942fa10037daae0
treeff616bba7f7f9cb682a5ce6dced942d4213c2496
parent228cfaea541824ac9bb0c83d957e8b34d631f58a
usb: xhci: remove the use of xhci->addr_dev

xhci->addr_dev is used for the completion of both address device
and enable slot commands. It's shared by enumerations of all USB
devices connected to an xhci host. Hence, it's just a source for
possible races. Since we've introduced command structure and the
command queue to xhci driver.  It is time to get rid of addr_dev
and use the completion in the command structure instead.

Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
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.c
drivers/usb/host/xhci.h