]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: pci: Wait longer before accessing the device after reset
authorAmit Cohen <amitc@mellanox.com>
Thu, 27 Feb 2020 20:07:53 +0000 (21:07 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Feb 2020 20:09:22 +0000 (12:09 -0800)
commit3ce95a08ffbcc522ae03735130d694f21b87077d
treead88760ed5936fe96c05a4dcd43d4983c4f659e6
parenta1440e16fb585050e204679af8d5b27661de6b17
mlxsw: pci: Wait longer before accessing the device after reset

During initialization the driver issues a reset to the device and waits
for 100ms before checking if the firmware is ready. The waiting is
necessary because before that the device is irresponsive and the first
read can result in a completion timeout.

While 100ms is sufficient for Spectrum-1 and Spectrum-2, it is
insufficient for Spectrum-3.

Fix this by increasing the timeout to 200ms.

Fixes: 30c81368ffac ("mlxsw: spectrum: Extend to support Spectrum-3 ASIC")
Signed-off-by: Amit Cohen <amitc@mellanox.com>
Signed-off-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_hw.h