Skip to content

Commit ac004e8

Browse files
amitcohen1davem330
authored andcommitted
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: da38287 ("mlxsw: spectrum: Extend to support Spectrum-3 ASIC") Signed-off-by: Amit Cohen <[email protected]> Signed-off-by: Ido Schimmel <[email protected]> Signed-off-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 23797b9 commit ac004e8

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/mellanox/mlxsw

1 file changed

+1
-1
lines changed

drivers/net/ethernet/mellanox/mlxsw/pci_hw.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#define MLXSW_PCI_SW_RESET 0xF0010
2929
#define MLXSW_PCI_SW_RESET_RST_BIT BIT(0)
3030
#define MLXSW_PCI_SW_RESET_TIMEOUT_MSECS 900000
31-
#define MLXSW_PCI_SW_RESET_WAIT_MSECS 100
31+
#define MLXSW_PCI_SW_RESET_WAIT_MSECS 200
3232
#define MLXSW_PCI_FW_READY 0xA1844
3333
#define MLXSW_PCI_FW_READY_MASK 0xFFFF
3434
#define MLXSW_PCI_FW_READY_MAGIC 0x5E

0 commit comments

Comments
 (0)