diff options
author | Andiry Xu <andiry.xu@amd.com> | 2010-10-14 10:22:45 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-22 13:22:11 -0400 |
commit | 64927730c66333c9d5987aa72a0e6d44ed91cec7 (patch) | |
tree | edc1da4d69cbd66d9ba1cff75a5738900d2e8cef /drivers/usb/host/xhci.h | |
parent | ac9dfe9cdda4eb42ecaa9f13b0fee518e0b6518e (diff) |
USB: xHCI: Add pointer to udev in struct xhci_virt_device
Add a pointer to udev in struct xhci_virt_device. When allocate a new
virt_device, make the pointer point to the corresponding udev.
Modify xhci_check_args(), check if virt_dev->udev matches the target udev,
to make sure command is issued to the right device.
Signed-off-by: Andiry Xu <andiry.xu@amd.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/xhci.h')
-rw-r--r-- | drivers/usb/host/xhci.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h index 34a60d9f056a..f03f140a7d9a 100644 --- a/drivers/usb/host/xhci.h +++ b/drivers/usb/host/xhci.h | |||
@@ -731,6 +731,7 @@ struct xhci_virt_ep { | |||
731 | }; | 731 | }; |
732 | 732 | ||
733 | struct xhci_virt_device { | 733 | struct xhci_virt_device { |
734 | struct usb_device *udev; | ||
734 | /* | 735 | /* |
735 | * Commands to the hardware are passed an "input context" that | 736 | * Commands to the hardware are passed an "input context" that |
736 | * tells the hardware what to change in its data structures. | 737 | * tells the hardware what to change in its data structures. |