mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 06:01:57 +00:00
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 <mika.westerberg@linux.intel.com>
This commit is contained in:
parent
25d905d2b8
commit
668906cf88
@ -250,7 +250,7 @@ static int tb_xdp_handle_error(const struct tb_xdp_error_response *res)
|
||||
case ERROR_UNKNOWN_DOMAIN:
|
||||
return -EIO;
|
||||
case ERROR_NOT_SUPPORTED:
|
||||
return -ENOTSUPP;
|
||||
return -EOPNOTSUPP;
|
||||
case ERROR_NOT_READY:
|
||||
return -EAGAIN;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user