mlxsw: spectrum: Reset FW after flash
authorJiri Pirko <jiri@mellanox.com>
Thu, 9 Aug 2018 08:59:09 +0000 (11:59 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Aug 2018 17:36:10 +0000 (10:36 -0700)
commitc86d62cc410cc5ab54c7e53a0c58efd3a025cac3
treedbcc13f0b02a58cf7218915e6867ac4282daeff6
parenta716d55e4d52af551f250a54eb72882ddbc3fb87
mlxsw: spectrum: Reset FW after flash

Recent FW fixes a bug and allows to load newly flashed FW image after
reset. So make sure the reset happens after flash. Indicate the need
down to PCI layer by -EAGAIN.

Signed-off-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.h
drivers/net/ethernet/mellanox/mlxsw/pci.c
drivers/net/ethernet/mellanox/mlxsw/spectrum.c