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)
commit1b3e68203cab4dfdd90d0934ec08762be723f3b1
tree1f9532d68122b9c5e6491ee12f35a2b6149fb731
parent56ce22c0cd5a9cea09044f62d5f641f38e41f909
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