]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: pci: Reincrease PCI reset timeout
authorIdo Schimmel <idosch@mellanox.com>
Thu, 18 Apr 2019 07:14:14 +0000 (07:14 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Apr 2019 17:37:30 +0000 (10:37 -0700)
commit0bee48d18823bc281d5c409a01b992db00b8baed
tree2c578c033a5d1fa92709c1ae6bf874baf2f61fa7
parent60d4b486ec16dbc1a3c099ee11f7fcb3f552ae98
mlxsw: pci: Reincrease PCI reset timeout

During driver initialization the driver sends a reset to the device and
waits for the firmware to signal that it is ready to continue.

Commit 6aae0da4b1ab ("mlxsw: pci: Increase PCI SW reset timeout")
increased the timeout to 13 seconds due to longer PHY calibration in
Spectrum-2 compared to Spectrum-1.

Recently it became apparent that this timeout is too short and therefore
this patch increases it again to a safer limit that will be reduced in
the future.

Fixes: 0d0a1b473e23 ("mlxsw: spectrum: Extend to support Spectrum-2 ASIC")
Fixes: 6aae0da4b1ab ("mlxsw: pci: Increase PCI SW reset timeout")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/pci_hw.h