diff options
author | 2020-11-03 13:55:32 +0200 | |
---|---|---|
committer | 2020-11-30 14:39:24 +0300 | |
commit | 9039387e166edab35c89ddcc057529e332cc4089 (patch) | |
tree | d477b2636bc2258ffe50707407903b89fe2424ae /drivers/thunderbolt/nhi.h | |
parent | thunderbolt: Move constants for USB4 router operations to tb_regs.h (diff) | |
download | linux-9039387e166edab35c89ddcc057529e332cc4089.tar.gz linux-9039387e166edab35c89ddcc057529e332cc4089.tar.bz2 linux-9039387e166edab35c89ddcc057529e332cc4089.zip |
thunderbolt: Add USB4 router operation proxy for firmware connection manager
Intel Maple Ridge and Tiger Lake connection manager firmware implements
a USB4 router operation proxy that should be used instead of direct
register access to avoid races with the firmware. This is supported in
all firmwares where the protocol version field returned in the driver
ready response is 3 (or higher).
This adds the USB4 router proxy operations support to the driver so that
we first check the protocol version and if it is 3 (or higher) the USB4
router operation is run through the firmware provided proxy. Otherwise
the native version is used.
Most USB4 router proxy operations are pretty straightforward except
NVM_AUTH where the firmware only responds once the router is restarted
but before it sends device connected notification. To support this we
split the operation so that the reply is received asynchronously and
stored to struct icm. This last reply is then returned in
icm_usb4_switch_nvm_authenticate_status() if available.
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers/thunderbolt/nhi.h')
0 files changed, 0 insertions, 0 deletions