]> git.baikalelectronics.ru Git - uboot.git/commit
xyz-modem: Allow to configure initial timeout for loadx and loady
authorPali Rohár <pali@kernel.org>
Sat, 27 Aug 2022 14:37:55 +0000 (16:37 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 15 Sep 2022 13:55:30 +0000 (09:55 -0400)
commit290f300c117bace43d43463615b0f687d23ff1da
tree1f9532d68122b9c5e6491ee12f35a2b6149fb731
parent24b63eeabf82f0e9dfb6fb647755304a6011bb63
xyz-modem: Allow to configure initial timeout for loadx and loady

Now when loadx and loady commands could be aborted / cancelled by CTRL+C,
allow to configure timeout for initial x/y-modem packet via env variable
$loadxy_timeout and by default use value from new compile-time config
option CONFIG_CMD_LOADXY_TIMEOUT. Value is in seconds and zero value means
infinite timeout. Default value is 90s which is the value used before this
change for loadx command.

Other load commands loadb and loads already waits infinitely. Same behavior
for loadx and loady commands can be achieved by setting $loadxy_timeout or
CONFIG_CMD_LOADXY_TIMEOUT to 0.

Signed-off-by: Pali Rohár <pali@kernel.org>
cmd/Kconfig
common/xyzModem.c