thunderbolt: Generalize tunnel creation functionality
authorMika Westerberg <mika.westerberg@linux.intel.com>
Sun, 19 Feb 2017 11:48:29 +0000 (13:48 +0200)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 18 Apr 2019 08:18:52 +0000 (11:18 +0300)
commit93f36ade5b7b82a842a3d6284b8cdb68adb93e85
tree0fcffda4eaaa3d528fa72f8c37a8e3a9656d83e7
parent1752b9f78713c7a188495319ebafbe7868718962
thunderbolt: Generalize tunnel creation functionality

To be able to tunnel non-PCIe traffic, separate tunnel functionality
into generic and PCIe specific parts. Rename struct tb_pci_tunnel to
tb_tunnel, and make it hold an array of paths instead of just two.
Update all the tunneling functions to take this structure as parameter.

We also move tb_pci_port_active() to switch.c (and rename it) where we
will be keeping all port and switch related functions.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/switch.c
drivers/thunderbolt/tb.c
drivers/thunderbolt/tb.h
drivers/thunderbolt/tb_regs.h
drivers/thunderbolt/tunnel.c
drivers/thunderbolt/tunnel.h