thunderbolt: Handle ERR_LOCK notification
authorMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 19 Sep 2019 12:22:20 +0000 (15:22 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Wed, 16 Sep 2020 11:57:46 +0000 (14:57 +0300)
commit80e7c5dd1ee0e79e8690c13066d866a455193892
tree7eea8678332338fb61e41c4c09086780911a89e7
parent8eabfca523337e62e393f2c336d93534058b7311
thunderbolt: Handle ERR_LOCK notification

If the USB4 router downstream port is locked, sending configuration
packet to a router below it causes ERR_LOCK to be sent. Instead of warn
splat about unknown error we log the error (just warning level) and
return -EACCESS instead. The idea is that we may want to do something
when such error code is received, like perform unlock.

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