]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
mlxsw: pci: Wait after reset before accessing HW
authorYuval Mintz <yuvalm@mellanox.com>
Wed, 10 Jan 2018 10:42:43 +0000 (11:42 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Jan 2018 20:58:22 +0000 (15:58 -0500)
commit8e033a93b37f37aa9fca71a370a895155320af60
treed61820cb5acab1ad118c414151d00022824b4a46
parentfc2336505fb49a8b932a0a67a9745c408b79992c
mlxsw: pci: Wait after reset before accessing HW

After performing reset driver polls on HW indication until learning
that the reset is done, but immediately after reset the device becomes
unresponsive which might lead to completion timeout on the first read.

Wait for 100ms before starting the polling.

Fixes: 233fa44bd67a ("mlxsw: pci: Implement reset done check")
Signed-off-by: Yuval Mintz <yuvalm@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
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_hw.h