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>
Mon, 22 Jun 2020 16:58:19 +0000 (19:58 +0300)
commit783735f84fea6aad9b1e5931d6ea632796feaae3
tree743cf2e4b37f41eb337f9b98a26220dd195bd9d6
parent53f13319d13197dd1f4c8ce5fc1ef4c32509b4e2
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