mlxsw: pci: Implement reset done check
authorJiri Pirko <jiri@mellanox.com>
Thu, 10 Mar 2016 22:10:21 +0000 (23:10 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Mar 2016 02:30:01 +0000 (22:30 -0400)
commit233fa44bd67ae0c6cbc01f96ab87d66a6c57812e
treec83aafab20c9f2954c1625f750d68319d4c1b77c
parentcea8768f333e3f0bc231d8b815aa4a9e63fa990c
mlxsw: pci: Implement reset done check

Firmware now tells us that the reset is done by passing a magic value
via register. Use it to shorten the wait in case this is supported.
With old firmware, we still wait until the timeout is reached.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/pci.c
drivers/net/ethernet/mellanox/mlxsw/pci.h