mlxsw: core: Enable devlink reload only on probe
authorJiri Pirko <jiri@mellanox.com>
Sun, 10 Nov 2019 15:31:23 +0000 (16:31 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Nov 2019 05:36:37 +0000 (21:36 -0800)
commit73a533ecf0af5f73ff72dd7c96d1c8598ca93649
tree73f6448c25e10b376c9fea64794509c5af37799a
parentd279505b723cba058b604ed8cf9cd4c854e2a041
mlxsw: core: Enable devlink reload only on probe

Call devlink enable only during probe time and avoid deadlock
during reload.

Reported-by: Shalom Toledo <shalomt@mellanox.com>
Fixes: 5a508a254bed ("devlink: disallow reload operation during device cleanup")
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Tested-by: Shalom Toledo <shalomt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/core.c