Skip to content

Commit 73a533e

Browse files
jpirkodavem330
authored andcommitted
mlxsw: core: Enable devlink reload only on probe
Call devlink enable only during probe time and avoid deadlock during reload. Reported-by: Shalom Toledo <[email protected]> Fixes: 5a508a2 ("devlink: disallow reload operation during device cleanup") Signed-off-by: Jiri Pirko <[email protected]> Tested-by: Shalom Toledo <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent d279505 commit 73a533e

File tree

1 file changed

+3
-2
lines changed
  • drivers/net/ethernet/mellanox/mlxsw

1 file changed

+3
-2
lines changed

drivers/net/ethernet/mellanox/mlxsw/core.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1186,10 +1186,11 @@ __mlxsw_core_bus_device_register(const struct mlxsw_bus_info *mlxsw_bus_info,
11861186
if (err)
11871187
goto err_thermal_init;
11881188

1189-
if (mlxsw_driver->params_register) {
1189+
if (mlxsw_driver->params_register)
11901190
devlink_params_publish(devlink);
1191+
1192+
if (!reload)
11911193
devlink_reload_enable(devlink);
1192-
}
11931194

11941195
return 0;
11951196

0 commit comments

Comments
 (0)