xhci: Change xhci_find_slot_id_by_port() API.
authorSarah Sharp <sarah.a.sharp@linux.intel.com>
Thu, 16 Dec 2010 18:49:09 +0000 (10:49 -0800)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Mon, 14 Mar 2011 01:23:38 +0000 (18:23 -0700)
commit5233630fcdd6f7d415dcbed264031439cab73f9d
treef877073953835d8989c83ab8473cf2100b64dd84
parent20b67cf51fa606442bb343afad0ee1a393a6afb3
xhci: Change xhci_find_slot_id_by_port() API.

xhci_find_slot_id_by_port() tries to map the port index to the slot ID for
the USB device.  In the future, there will be two xHCI roothubs, and their
port indices will overlap.  Therefore, xhci_find_slot_id_by_port() will
need to use information in the roothub's usb_hcd structure to map the port
index and roothub speed to the right slot ID.

Add a new parameter to xhci_find_slot_id_by_port(), in order to pass in
the roothub's usb_hcd structure.

Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
drivers/usb/host/xhci-hub.c
drivers/usb/host/xhci-ring.c
drivers/usb/host/xhci.h