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>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
228cfaea54
commit
87e44f2aac
@@ -1584,7 +1584,6 @@ struct xhci_hcd {
|
||||
/* slot enabling and address device helpers */
|
||||
/* these are not thread safe so use mutex */
|
||||
struct mutex mutex;
|
||||
struct completion addr_dev;
|
||||
int slot_id;
|
||||
/* For USB 3.0 LPM enable/disable. */
|
||||
struct xhci_command *lpm_command;
|
||||
|
Reference in New Issue
Block a user