mlxsw: cmd: Handle error after reset gracefully
authorJiri Pirko <jiri@mellanox.com>
Sun, 27 May 2018 06:56:14 +0000 (09:56 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 May 2018 14:10:03 +0000 (10:10 -0400)
commit2a360bf0f6608f61ef149220cfb9c369f5d086b7
tree5039c98577833f0f8af4f00685b21933e89c3cbc
parent12b003b2e4e47f9f395ffd29719370023b4f0ba8
mlxsw: cmd: Handle error after reset gracefully

There is an exception in command interface processing in case the MRSR
register is written to. The register triggers FW reset and during the
reset FW returns an error. So handle this by ignoring this error while
writing to MRSR register.

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/cmd.h
drivers/net/ethernet/mellanox/mlxsw/core.c