]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9cd6c48196fa959734ebd587152bf9e9c3ac2fde
treec83aafab20c9f2954c1625f750d68319d4c1b77c
parent1976a3760d0191ded173fdc7f1b509724c8af457
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