aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/xhci.h
diff options
context:
space:
mode:
authorAndiry Xu <andiry.xu@amd.com>2010-10-14 10:22:51 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-10-22 13:22:12 -0400
commitc8d4af8e2af12cd4835ba5c4b54bdafe9deda71a (patch)
treee89c7c700bfe5022eaba3508a818a51717bbd12d /drivers/usb/host/xhci.h
parentf0615c45ce5feb141c1172480c5198d4b8d25436 (diff)
USB: core: use kernel assigned address for devices under xHCI
xHCI driver uses hardware assigned device address. This may cause device address conflict in certain cases. Use kernel assigned address for devices under xHCI. Store the xHC assigned address locally in xHCI driver. Signed-off-by: Andiry Xu <andiry.xu@amd.com> Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Diffstat (limited to 'drivers/usb/host/xhci.h')
-rw-r--r--drivers/usb/host/xhci.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h
index 490409f918f2..a7181b491e67 100644
--- a/drivers/usb/host/xhci.h
+++ b/drivers/usb/host/xhci.h
@@ -746,6 +746,8 @@ struct xhci_virt_device {
746 /* Rings saved to ensure old alt settings can be re-instated */ 746 /* Rings saved to ensure old alt settings can be re-instated */
747 struct xhci_ring **ring_cache; 747 struct xhci_ring **ring_cache;
748 int num_rings_cached; 748 int num_rings_cached;
749 /* Store xHC assigned device address */
750 int address;
749#define XHCI_MAX_RINGS_CACHED 31 751#define XHCI_MAX_RINGS_CACHED 31
750 struct xhci_virt_ep eps[31]; 752 struct xhci_virt_ep eps[31];
751 struct completion cmd_completion; 753 struct completion cmd_completion;