net/mlx5: Return specific error code for timeout on wait_fw_init
authorMoshe Shemesh <moshe@nvidia.com>
Fri, 26 Jan 2024 07:26:29 +0000 (09:26 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 6 Feb 2024 00:45:52 +0000 (16:45 -0800)
commitbcad0e5312314ea6d69989c382df42f9a8348783
tree86aff5acb7f894109291c3da6e5ae9321ba4a8c9
parent137cef6d55564fb687d12fbc5f85be43ff7b53a7
net/mlx5: Return specific error code for timeout on wait_fw_init

The function wait_fw_init() returns same error code either if it breaks
waiting due to timeout or other reason. Thus, the function callers print
error message on timeout without checking error type.

Return different error code for different failure reason and print error
message accordingly on wait_fw_init().

Signed-off-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/main.c