mlxsw: pci: Fix reset wait for SwitchX2
authorJiri Pirko <jiri@mellanox.com>
Thu, 20 Oct 2016 14:05:45 +0000 (16:05 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Oct 2016 15:11:11 +0000 (11:11 -0400)
commit164c971d1cc365dc85e5cf9a9302a91c0cf7f126
treea234e59fb4ab6bba794d3ff026d4975812628dc3
parent7fb6a36bab6b0b158f93eb13faa1b440f8b26009
mlxsw: pci: Fix reset wait for SwitchX2

SwitchX2 firmware does not implement reset done yet. Moreover, when
busy-polled for ready magic, that slows down firmware and reset takes
longer than the defined timeout, causing initialization to fail.
So restore the previous behaviour and just sleep in this case.

Fixes: 233fa44bd67a ("mlxsw: pci: Implement reset done check")
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/pci.c