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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Jul 2020 07:34:17 +0000 (09:34 +0200)
commit15e17aa0db84835ad5a1f36a82bab831f3db6fc4
tree69682d0ddbf034eb1c39c167fadcdceffcf8b33f
parent50f1f84454453a713a161241300f70b1040d402d
thunderbolt: Fix path indices used in USB3 tunnel discovery

commit 8b94a4b92327d061327117e127d7d44a4a43e639 upstream.

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+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/thunderbolt/tunnel.c