]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
tools: kwboot: Remove 2s delay before sending first xmodem packet
authorPali Rohár <pali@kernel.org>
Tue, 25 Jan 2022 17:13:09 +0000 (18:13 +0100)
committerStefan Roese <sr@denx.de>
Mon, 31 Jan 2022 09:23:38 +0000 (10:23 +0100)
This delay is not needed anymore since kwboot already handles retrying
logic for incomplete xmodem packets and also forces BootROM to flush its
input queue. Removing it decreases total transfer time.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
tools/kwboot.c

index 824ae005b269f89baaf48f7b037ea5931e9f04f0..de433c1b0440d82ec165cd3edfc33fb251c7e408 100644 (file)
@@ -1142,10 +1142,6 @@ kwboot_xmodem(int tty, const void *_img, size_t size, int baudrate)
         */
        hdrsz += (KWBOOT_XM_BLKSZ - hdrsz % KWBOOT_XM_BLKSZ) % KWBOOT_XM_BLKSZ;
 
-       kwboot_printv("Waiting %d ms and flushing tty\n", blk_rsp_timeo);
-       usleep(blk_rsp_timeo * 1000);
-       tcflush(tty, TCIOFLUSH);
-
        pnum = 1;
 
        rc = kwboot_xmodem_one(tty, &pnum, 1, img, hdrsz, baudrate);