Shay Drory 42b4f7f66a net/mlx5: Fix driver use of uninitialized timeout
Currently, driver is setting default values to all timeouts during
function setup. The offending commit is using a timeout before
function setup, meaning: the timeout is 0 (or garbage), since no
value have been set.
This may result in failure to probe the driver:
mlx5_function_setup:1034:(pid 69850): Firmware over 4294967296 MS in pre-initializing state, aborting
probe_one:1591:(pid 69850): mlx5_init_one failed with error code -16

Hence, set default values to timeouts during tout_init()

Fixes: 37ca95e62ee2 ("net/mlx5: Increase FW pre-init timeout for health recovery")
Signed-off-by: Shay Drory <shayd@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
2022-07-28 13:44:41 -07:00
..
2022-05-02 13:57:56 -07:00
2022-05-06 12:07:56 +01:00
2022-07-19 17:10:56 -07:00
2022-05-20 17:38:27 -07:00
2022-05-11 13:09:59 +01:00
2022-06-30 11:34:10 -07:00
2022-06-17 11:38:09 +01:00