thunderbolt: Return -ENOTCONN when ERR_CONN is received
authorMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 17 Nov 2020 10:19:41 +0000 (13:19 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 30 Nov 2020 11:39:24 +0000 (14:39 +0300)
commit463e48fa544826898791085508459de246fc4c09
treec3818692ad04786743c9ba0185515226c2e9d11e
parentb658eb9d9075aa2b44834962a1efc4bc78e9bed8
thunderbolt: Return -ENOTCONN when ERR_CONN is received

This allows the calling code to distinguish if the error was due to
ERR_CONN (adapter is disconneced or disabled) or something else. Will be
needed in USB4 router NVM update in the following patch.

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