[PATCH v2] xyz-modem: Allow to configure initial timeout for loadx and loady

Tom Rini trini at konsulko.com
Sat Aug 27 14:53:08 CEST 2022


On Sat, Aug 27, 2022 at 01:48:35PM +0200, Pali Rohár wrote:

> 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 measured value used
> before this change for loadx and loady commands.
> 
> 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 at kernel.org>
> ---
> Changes in v2:
> * Allow to set timeout via env instead of permanent infinite timeout

This breaks platforms like "porter" where we have SPL_YMODEM support but
do not have environment support.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220827/29e41b9a/attachment.sig>


More information about the U-Boot mailing list