thunderbolt: Add downstream PCIe port mappings for Alpine and Titan Ridge
[sfrench/cifs-2.6.git] / drivers / thunderbolt / tb.c
index e8e2d20cf4c64173ed63c4021c00889e2e84d1b8..c24b577e049e2022499aee976fc911510bfe5de0 100644 (file)
@@ -342,10 +342,13 @@ static struct tb_port *tb_find_pcie_down(struct tb_switch *sw,
                 * Hard-coded Thunderbolt port to PCIe down port mapping
                 * per controller.
                 */
-               if (tb_switch_is_cactus_ridge(sw))
+               if (tb_switch_is_cactus_ridge(sw) ||
+                   tb_switch_is_alpine_ridge(sw))
                        index = !phy_port ? 6 : 7;
                else if (tb_switch_is_falcon_ridge(sw))
                        index = !phy_port ? 6 : 8;
+               else if (tb_switch_is_titan_ridge(sw))
+                       index = !phy_port ? 8 : 9;
                else
                        goto out;