Skip to content

Commit 32f0d67

Browse files
quic-bjorandeandersson
authored andcommitted
firehose: Increase timeout for read of program-ack
Commit 'a10cf7f5da7a ("firehose: Increase image write timeout to 60 seconds")' bumped the timeout for writes in the program operation, per observed behavior. This was confirmed to solve the problems seen when programming SPINOR in Nord devices New reports (and measurements) shows the write taking a negligible amount of time and the read of the following "program ack" taking the whole reported ~35 second, resulting in a timeout. The proprietary tools has a write timeout of 60 seconds in some operating systems and no timeout for others, and a read timeout of 120 seconds. Update this timeout for the "program ack" to 120 seconds, to match the proprietary tools. Fixes: a10cf7f ("firehose: Increase image write timeout to 60 seconds") Signed-off-by: Bjorn Andersson <bjorn.andersson@oss.qualcomm.com>
1 parent eb345df commit 32f0d67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

firehose.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ static int firehose_program(struct qdl_device *qdl, struct program *program, int
608608

609609
t = time(NULL) - t0;
610610

611-
ret = firehose_read(qdl, 30000, firehose_generic_parser, NULL);
611+
ret = firehose_read(qdl, 120000, firehose_generic_parser, NULL);
612612
if (ret) {
613613
ux_err("flashing of %s failed\n", program->label);
614614
} else if (t) {

0 commit comments

Comments
 (0)