tmp_suning_uos_patched/drivers/thunderbolt
Mika Westerberg dfe40ca486 thunderbolt: Assign remote for both ports in case of dual link
Currently the driver only assigns remote port for the primary port if in
case of dual link. This makes things such as walking from one port to
another more complex than necessary because the code needs to change
from secondary to primary port if the path that is established is
created using secondary links.

In order to always assign both remote pointers we need to prevent the
scanning code from following the secondary link. Failing to do that
might cause problems as the same switch may be enumerated twice (or
removed in case of unplug). Handle that properly by introducing a new
function tb_port_has_remote() that returns true only for the primary
port. We also update tb_is_upstream_port() to support both dual link
ports, make it take const port pointer and move it below
tb_upstream_port() to keep similar functions close.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
2019-04-18 11:18:52 +03:00
..
cap.c thunderbolt: Add dummy read after port capability list walk on Light Ridge 2019-04-18 11:18:51 +03:00
ctl.c thunderbolt: Add Intel as copyright holder 2018-10-02 15:52:08 -07:00
ctl.h thunderbolt: Add Intel as copyright holder 2018-10-02 15:52:08 -07:00
dma_port.c thunderbolt: Convert rest of the driver files to use SPDX identifier 2018-10-02 15:52:08 -07:00
dma_port.h thunderbolt: Convert rest of the driver files to use SPDX identifier 2018-10-02 15:52:08 -07:00
domain.c thunderbolt: Export IOMMU based DMA protection support to userspace 2018-12-05 12:01:56 +03:00
eeprom.c thunderbolt: Add Intel as copyright holder 2018-10-02 15:52:08 -07:00
icm.c thunderbolt: Assign remote for both ports in case of dual link 2019-04-18 11:18:52 +03:00
Kconfig
lc.c thunderbolt: Set sleep bit when suspending switch 2019-04-18 11:18:52 +03:00
Makefile thunderbolt: Rename tunnel_pci to tunnel 2019-04-18 11:18:52 +03:00
nhi_regs.h thunderbolt: Add Intel as copyright holder 2018-10-02 15:52:08 -07:00
nhi.c thunderbolt: Add functions for allocating and releasing HopIDs 2019-04-18 11:18:52 +03:00
nhi.h thunderbolt: Add Intel as copyright holder 2018-10-02 15:52:08 -07:00
path.c thunderbolt: Properly disable path 2019-04-18 11:18:52 +03:00
property.c thunderbolt: property: Fix a missing check of kzalloc 2019-03-28 11:30:47 +03:00
switch.c thunderbolt: Assign remote for both ports in case of dual link 2019-04-18 11:18:52 +03:00
tb_msgs.h thunderbolt: Convert rest of the driver files to use SPDX identifier 2018-10-02 15:52:08 -07:00
tb_regs.h thunderbolt: Generalize tunnel creation functionality 2019-04-18 11:18:52 +03:00
tb.c thunderbolt: Assign remote for both ports in case of dual link 2019-04-18 11:18:52 +03:00
tb.h thunderbolt: Assign remote for both ports in case of dual link 2019-04-18 11:18:52 +03:00
tunnel.c thunderbolt: Generalize tunnel creation functionality 2019-04-18 11:18:52 +03:00
tunnel.h thunderbolt: Generalize tunnel creation functionality 2019-04-18 11:18:52 +03:00
xdomain.c thunderbolt: Assign remote for both ports in case of dual link 2019-04-18 11:18:52 +03:00