thunderbolt: Introduce usb4_port_sb_opcode_err_to_errno() helper
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 30 Mar 2023 10:23:42 +0000 (13:23 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 3 Apr 2023 05:37:18 +0000 (08:37 +0300)
commit1f15af76784cc902a1fe85e864c7ddf3d74b4130
tree1f122c6658ba2383c116a6bfe4e275351dd8f910
parent5d88366807fce55ab5bd1bf94055e1d1d0032604
thunderbolt: Introduce usb4_port_sb_opcode_err_to_errno() helper

The usb4_port_sb_opcode_err_to_errno() converts from USB4 error codes
to the Linux errno space. In particular, this makes the intention
of the repeating usb4_port_retimer_read() call in the
usb4_port_retimer_nvm_authenticate_status() clearer.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/usb4.c