Skip to content

Commit 668906c

Browse files
committed
thunderbolt: Use correct error code with ERROR_NOT_SUPPORTED
We check for -EOPNOTSUPP but tb_xdp_handle_error() translated it to -ENOTSUPP instead which is dealt as "transient" error and retried after a while. Fix this so that we bail out early when the other side clearly tells us it is does not support this. Signed-off-by: Mika Westerberg <[email protected]>
1 parent 25d905d commit 668906c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/thunderbolt/xdomain.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ static int tb_xdp_handle_error(const struct tb_xdp_error_response *res)
250250
case ERROR_UNKNOWN_DOMAIN:
251251
return -EIO;
252252
case ERROR_NOT_SUPPORTED:
253-
return -ENOTSUPP;
253+
return -EOPNOTSUPP;
254254
case ERROR_NOT_READY:
255255
return -EAGAIN;
256256
default:

0 commit comments

Comments
 (0)