Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sfc: Increase MCDI status timeout to 250ms

The SFC9120 MC firmware often takes longer than 20ms to reboot and
update the warm boot count in BIU_MC_SFT_STATUS_REG. A timeout of
250ms is very generous for an MC reboot.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>

authored by

Daniel Pieczko and committed by
Ben Hutchings
b2d32f03 dfdaa95c

+2 -2
+2 -2
drivers/net/ethernet/sfc/mcdi.c
··· 27 27 28 28 /* A reboot/assertion causes the MCDI status word to be set after the 29 29 * command word is set or a REBOOT event is sent. If we notice a reboot 30 - * via these mechanisms then wait 20ms for the status word to be set. 30 + * via these mechanisms then wait 250ms for the status word to be set. 31 31 */ 32 32 #define MCDI_STATUS_DELAY_US 100 33 - #define MCDI_STATUS_DELAY_COUNT 200 33 + #define MCDI_STATUS_DELAY_COUNT 2500 34 34 #define MCDI_STATUS_SLEEP_MS \ 35 35 (MCDI_STATUS_DELAY_US * MCDI_STATUS_DELAY_COUNT / 1000) 36 36