thunderbolt: Add additional USB4 port operations for retimer access
authorRajmohan Mani <rajmohan.mani@intel.com>
Thu, 1 Apr 2021 15:38:05 +0000 (18:38 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 1 Jun 2021 07:53:31 +0000 (10:53 +0300)
commit3406de7cc20f254010f2f17450a58541fb77ffea
tree952f1f40860e3e58fdce76b69cb14fa6f59686db
parentccc5cb8ad5d18ec0e008d1652711fa1c18e9366c
thunderbolt: Add additional USB4 port operations for retimer access

When accessing retimers when there is no cable connected we are going to
need additional USB4 port operations. First the port needs to be put
into offline mode, and then the sideband channel transactions must be
enabled on the SBTX line. This adds support for these operations.

Signed-off-by: Rajmohan Mani <rajmohan.mani@intel.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/thunderbolt/sb_regs.h
drivers/thunderbolt/tb.h
drivers/thunderbolt/usb4.c