]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
mlxsw: core: Reset firmware after flash during driver initialization
authorShalom Toledo <shalomt@mellanox.com>
Mon, 3 Dec 2018 07:59:01 +0000 (07:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Dec 2018 21:55:43 +0000 (13:55 -0800)
commit03bffcad491fa824eba21b68e4ed710f9eca49d8
tree0b30633254958e05fee1d0962e8e33bd6cb1eb7c
parent846e980a87fc30075517d6d979548294d5461bdb
mlxsw: core: Reset firmware after flash during driver initialization

After flashing new firmware during the driver initialization flow (reload
or not), the driver should do a firmware reset when it gets -EAGAIN in
order to load the new one.

Signed-off-by: Shalom Toledo <shalomt@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/core.c
drivers/net/ethernet/mellanox/mlxsw/pci.c