diff options
author | Lan Tianyu <tianyu.lan@intel.com> | 2013-03-19 16:48:12 +0800 |
---|---|---|
committer | Sarah Sharp <sarah.a.sharp@linux.intel.com> | 2013-03-25 10:39:17 -0700 |
commit | 3f5eb14135ba9d97ba4b8514fc7ef5e0dac2abf4 (patch) | |
tree | 4ab79f8553199f6c81a80612d497bd33b5212fea /Documentation/auxdisplay | |
parent | 09ce0c0c8a99651cace20958278476ee3f31678c (diff) | |
download | op-kernel-dev-3f5eb14135ba9d97ba4b8514fc7ef5e0dac2abf4.zip op-kernel-dev-3f5eb14135ba9d97ba4b8514fc7ef5e0dac2abf4.tar.gz |
usb: add find_raw_port_number callback to struct hc_driver()
xhci driver divides the root hub into two logical hubs which work
respectively for usb 2.0 and usb 3.0 devices. They are independent
devices in the usb core. But in the ACPI table, it's one device node
and all usb2.0 and usb3.0 ports are under it. Binding usb port with
its acpi node needs the raw port number which is reflected in the xhci
extended capabilities table. This patch is to add find_raw_port_number
callback to struct hc_driver(), fill it with xhci_find_raw_port_number()
which will return raw port number and add a wrap usb_hcd_find_raw_port_number().
Otherwise, refactor xhci_find_real_port_number(). Using
xhci_find_raw_port_number() to get real index in the HW port status
registers instead of scanning through the xHCI roothub port array.
This can help to speed up.
All addresses in xhci->usb2_ports and xhci->usb3_ports array are
kown good ports and don't include following bad ports in the extended
capabilities talbe.
(1) root port that doesn't have an entry
(2) root port with unknown speed
(3) root port that is listed twice and with different speeds.
So xhci_find_raw_port_number() will only return port num of good ones
and never touch bad ports above.
Signed-off-by: Lan Tianyu <tianyu.lan@intel.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Diffstat (limited to 'Documentation/auxdisplay')
0 files changed, 0 insertions, 0 deletions