thunderbolt: Hide authorized attribute if router does not support PCIe tunnels
authorMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 2 Mar 2021 14:11:07 +0000 (16:11 +0200)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 9 Apr 2021 09:26:24 +0000 (12:26 +0300)
commit6f3badead6a078cf3c71f381f9d84ac922984a00
tree63a8e7d13fb207c25452e2f522224ddb448a6ae4
parent2f608ba19610e9b05c38747d41b97af75455a478
thunderbolt: Hide authorized attribute if router does not support PCIe tunnels

With USB4 devices PCIe tunneling is optional so for device routers
without PCIe upstream adapter it does not make much sense to expose the
authorized attribute. For this reason hide it if PCIe tunneling is not
supported by the device router.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/thunderbolt/switch.c