thunderbolt: Add details to router uevent
authorMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 2 Mar 2021 13:51:44 +0000 (15:51 +0200)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 9 Apr 2021 09:26:10 +0000 (12:26 +0300)
commit2f608ba19610e9b05c38747d41b97af75455a478
treea0b75d16bf86ffaee762fa32448f325787418651
parent2e7a5b3e22368b65583d1b717e267de0a5906c32
thunderbolt: Add details to router uevent

Expose two environment variables for routers as part of the initial
uevent:

  USB4_VERSION=1.0
  USB4_TYPE=host|device|hub

Userspace can use this information to expose more details about each
connected device. Only USB4 devices have USB4_VERSION but all devices
have USB4_TYPE.

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