]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: pci: Increase PCI reset timeout for SN3800 systems
authorIdo Schimmel <idosch@mellanox.com>
Wed, 30 Oct 2019 09:34:49 +0000 (11:34 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Oct 2019 19:07:05 +0000 (12:07 -0700)
commitf3589562c86454cb042815be8f7e5780d755a6c8
tree2319b48e5c7d39680615ed57afdf03919e4873f0
parent24d77a71af4b957b4673c73b9ed2d4825afb52d8
mlxsw: pci: Increase PCI reset timeout for SN3800 systems

SN3800 Spectrum-2 based systems have gearboxes that need to be
initialized by the firmware during its initialization flow. In certain
cases, the firmware might need to flash these gearboxes, which is
currently a time-consuming process.

In newer firmware versions, the firmware will not signal to the driver
that it is ready until the gearboxes are flashed. Increase the PCI reset
timeout for these situations. In normal cases, the driver will need to
wait no longer than 5 seconds.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/pci_hw.h