Commit fd48f7ce authored by Bjorn Andersson's avatar Bjorn Andersson
Browse files

firehose: Lower the initial read timeout

Upon booting the firehose payload some platforms will issue log messages
others won't. Rather than waiting for 10 seconds on the ones that
doesn't wait only for a second.

Hopefully this is long enough, but the firmware synchronization and
handling of incoming log messages should be reviewed further.

Signed-off-by: default avatarBjorn Andersson <>
parent 90d3a6fe
......@@ -118,7 +118,7 @@ static int firehose_read(struct qdl_device *qdl, int wait, int (*response_parser
int timeout = 1000;
if (wait > 0)
timeout = 10000;
timeout = wait;
for (;;) {
n = qdl_read(qdl, buf, sizeof(buf), timeout);
......@@ -575,7 +575,7 @@ int firehose_run(struct qdl_device *qdl, const char *incdir, const char *storage
int bootable;
int ret;
firehose_read(qdl, 5000, NULL);
firehose_read(qdl, 1000, NULL);
if(ufs_need_provisioning()) {
ret = firehose_configure(qdl, true, storage);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment