FAILED: patch "[PATCH] thunderbolt: Fix path indices used in USB3 tunnel discovery" failed to apply to 5.8-stable tree
Subsystems (2)
[email protected]
maintainerThe patch below does not apply to the 5.8-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 783735f84fea6aad9b1e5931d6ea632796feaae3 Mon Sep 17 00:00:00 2001
From: Mika Westerberg <[email protected]>
Date: Thu, 2 Apr 2020 12:45:34 +0300
Subject: [PATCH] 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.
drivers/thunderbolt/tunnel.c +6 -6
@@ -913,21 +913,21 @@ struct tb_tunnel *tb_tunnel_discover_usb3(struct tb *tb, struct tb_port *down)* case. */ path =tb_path_discover (down,TB_USB3_HOPID ,NULL ,-1 , - &tunnel->dst_port,"USB3 Up" ); + &tunnel->dst_port,"USB3 Down" );if (!path) {/* Just disable the downstream port */ tb_usb3_port_enable (down, false); goto err_free; } - tunnel->paths[TB_USB3_PATH_UP ] = path; -tb_usb3_init_path (tunnel->paths[TB_USB3_PATH_UP ]); + tunnel->paths[TB_USB3_PATH_DOWN ] = path; +tb_usb3_init_path (tunnel->paths[TB_USB3_PATH_DOWN ]); path =tb_path_discover (tunnel->dst_port,-1 , down,TB_USB3_HOPID ,NULL , -"USB3 Down" ); +"USB3 Up" );if (!path) goto err_deactivate; - tunnel->paths[TB_USB3_PATH_DOWN ] = path; -tb_usb3_init_path (tunnel->paths[TB_USB3_PATH_DOWN ]); + tunnel->paths[TB_USB3_PATH_UP ] = path; +tb_usb3_init_path (tunnel->paths[TB_USB3_PATH_UP ]);/* Validate that the tunnel is complete */ if (!tb_port_is_usb3_up (tunnel->dst_port)) {