thunderbolt: Fix path indices used in USB3 tunnel discovery
authorMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 2 Apr 2020 09:45:34 +0000 (12:45 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 25 Jun 2020 12:45:30 +0000 (15:45 +0300)
commit8b94a4b92327d061327117e127d7d44a4a43e639
tree75349fc7bb35c3361155f5a01c13c0c35c8769d1
parent48778464bb7d346b47157d21ffde2af6b2d39110
thunderbolt: Fix path indices used in USB3 tunnel discovery

The USB3 discovery used wrong indices when tunnel is discovered. It
should use TB_USB3_PATH_DOWN for path that flows downstream and
TB_USB3_PATH_UP when it flows upstream. This should not affect the
functionality but better to fix it.

Fixes: e6f818585713 ("thunderbolt: Add support for USB 3.x tunnels")
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Cc: stable@vger.kernel.org # v5.6+
drivers/thunderbolt/tunnel.c