summaryrefslogtreecommitdiffstats
path: root/drivers/thunderbolt/usb4.c
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@linux.intel.com>2020-03-11 14:12:50 +0100
committerMika Westerberg <mika.westerberg@linux.intel.com>2020-06-22 18:58:20 +0200
commit9cac51a049dbbca0b078bb9cffa7a8d928cf0f06 (patch)
treef00a7964561c295151282cf9bfc7852fb1251f9b /drivers/thunderbolt/usb4.c
parentthunderbolt: Make usb4_switch_map_usb3_down() also return enabled ports (diff)
downloadlinux-9cac51a049dbbca0b078bb9cffa7a8d928cf0f06.tar.xz
linux-9cac51a049dbbca0b078bb9cffa7a8d928cf0f06.zip
thunderbolt: Make usb4_switch_map_pcie_down() also return enabled ports
Just for symmetry with the usb4_switch_map_usb3_down() make this one also return ports that are enabled. Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers/thunderbolt/usb4.c')
-rw-r--r--drivers/thunderbolt/usb4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thunderbolt/usb4.c b/drivers/thunderbolt/usb4.c
index 375a8c459201..dd1c0498a8ee 100644
--- a/drivers/thunderbolt/usb4.c
+++ b/drivers/thunderbolt/usb4.c
@@ -728,7 +728,7 @@ struct tb_port *usb4_switch_map_pcie_down(struct tb_switch *sw,
if (!tb_port_is_pcie_down(p))
continue;
- if (pcie_idx == usb4_idx && !tb_pci_port_is_enabled(p))
+ if (pcie_idx == usb4_idx)
return p;
pcie_idx++;