Skip to content

Commit fc2635b

Browse files
committed
Merge branch 'mlxsw-couple-of-fixes'
Ido Schimmel says: ==================== mlxsw: Couple of fixes Patch #1 fixes firmware flashing when CONFIG_MLXSW_CORE=y and CONFIG_MLXFW=m. Patch #2 prevents EMAD transactions from needlessly failing when the system is under heavy load by using exponential backoff. Please consider patch #2 for stable. ==================== Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
2 parents 1532b97 + 1f492ea commit fc2635b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

drivers/net/ethernet/mellanox/mlxsw/Kconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
config MLXSW_CORE
77
tristate "Mellanox Technologies Switch ASICs support"
88
select NET_DEVLINK
9+
select MLXFW
910
help
1011
This driver supports Mellanox Technologies Switch ASICs family.
1112

@@ -82,7 +83,6 @@ config MLXSW_SPECTRUM
8283
select GENERIC_ALLOCATOR
8384
select PARMAN
8485
select OBJAGG
85-
select MLXFW
8686
imply PTP_1588_CLOCK
8787
select NET_PTP_CLASSIFY if PTP_1588_CLOCK
8888
default m

drivers/net/ethernet/mellanox/mlxsw/core.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,8 @@ static void mlxsw_emad_trans_timeout_schedule(struct mlxsw_reg_trans *trans)
571571
if (trans->core->fw_flash_in_progress)
572572
timeout = msecs_to_jiffies(MLXSW_EMAD_TIMEOUT_DURING_FW_FLASH_MS);
573573

574-
queue_delayed_work(trans->core->emad_wq, &trans->timeout_dw, timeout);
574+
queue_delayed_work(trans->core->emad_wq, &trans->timeout_dw,
575+
timeout << trans->retries);
575576
}
576577

577578
static int mlxsw_emad_transmit(struct mlxsw_core *mlxsw_core,

0 commit comments

Comments
 (0)