thunderbolt: Make usb4_switch_map_usb3_down() also return enabled ports
authorMika Westerberg <mika.westerberg@linux.intel.com>
Wed, 11 Mar 2020 13:00:46 +0000 (16:00 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 22 Jun 2020 16:58:20 +0000 (19:58 +0300)
commit77cfa40fcdea9f75255a9785d345fa25e4a3ad0b
treef439978ea3040b8cba44e3bea39338c6d788a964
parentbbcf40b3928347d4bff0017246f7fc840405e92f
thunderbolt: Make usb4_switch_map_usb3_down() also return enabled ports

We need to call this on enabled ports in order to find the mapping from
host router USB4 port to a USB 3.x downstream adapter, so make the
function return enabled ports as well.

While there fix parameter alignment in tb_find_usb3_down().

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/tb.c
drivers/thunderbolt/usb4.c