]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/thunderbolt/tb.c
thunderbolt: Fix nontrivial endpoint devices.
authorAndreas Noever <andreas.noever@gmail.com>
Thu, 12 Jun 2014 21:11:47 +0000 (23:11 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2014 21:14:35 +0000 (14:14 -0700)
commit343fcb8c70d76967ba64493ca984e40baad9d0f6
tree8e8b8731fe2094124f459ba33b66b703dcab2178
parentcd22e73bdf5eff7e68a0f8bdfbce123ad43651f6
thunderbolt: Fix nontrivial endpoint devices.

Fix issues observed with the Startech docking station:

Fix the type of the route parameter in tb_ctl_rx. It should be u64 and not
u8 (which only worked for short routes).

A thunderbolt cable contains two lanes. If both endpoints support it a
connection will be established on both lanes. Previously we tried to
scan below both "dual link ports". Use the information extracted from
the drom to only scan behind ports with lane_nr == 0.

Endpoints with more complex thunderbolt controllers have some of their
ports disabled (for example the NHI port or one of the HDMI/DP ports).
Accessing them results in an error so we now ignore ports which are
marked as disabled in the drom.

Signed-off-by: Andreas Noever <andreas.noever@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/thunderbolt/ctl.c
drivers/thunderbolt/switch.c
drivers/thunderbolt/tb.c