summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorJules Maselbas <jmaselbas@kalray.eu>2023-02-07 17:20:54 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2023-02-13 10:10:28 +0100
commit7458d7f530daef8cc7ec788da569be137227b581 (patch)
tree21ec326053c1c1734e7dfa82679aa44895395922 /common
parent7769454f85565e2c83b0b3faea452f4b21753a31 (diff)
downloadbarebox-7458d7f530daef8cc7ec788da569be137227b581.tar.gz
ratp: Increase the establish timeout to 1sec
Current timeout was only 100ms which is also the current initial value for the RTO (Retransmission Time Out), this is too short as it doesn't give barebox a chance to resent a packet during the handshake. Signed-off-by: Jules Maselbas <jmaselbas@kalray.eu> Link: https://lore.barebox.org/20230207162055.10050-4-jmaselbas@kalray.eu Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r--common/ratp/ratp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/ratp/ratp.c b/common/ratp/ratp.c
index 424c9406d2..fddb286e01 100644
--- a/common/ratp/ratp.c
+++ b/common/ratp/ratp.c
@@ -486,7 +486,7 @@ int barebox_ratp(struct console_device *cdev)
ctx->cdev = cdev;
ctx->have_synch = 1;
- ret = ratp_establish(&ctx->ratp, false, 100);
+ ret = ratp_establish(&ctx->ratp, false, 1000);
if (ret < 0)
goto out;