Skip to content
Snippets Groups Projects
Commit 25157ae5 authored by Bjorn Andersson's avatar Bjorn Andersson
Browse files

sahara: Ignore DONE response code


The DONE message contains a return code denoting if the firmware is done
(1) requesting files from the host, or if there are more requests to
come (0). Unfortunately on some platforms the ROM code sends 0
regardless, so we just have to assume that we're done.

This assumes that there is only ever one image to transfer.

Reported-by: default avatarKirill Kapranov <kkapra@codeaurora.org>
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
parent 6edc9372
No related branches found
No related tags found
No related merge requests found
......@@ -198,7 +198,6 @@ int sahara_run(int fd, char *prog_mbn)
char buf[4096];
char tmp[32];
bool done = false;
int ret;
int n;
while (!done) {
......@@ -235,9 +234,8 @@ int sahara_run(int fd, char *prog_mbn)
sahara_eoi(fd, pkt);
break;
case 6:
ret = sahara_done(fd, pkt);
if (ret)
done = true;
sahara_done(fd, pkt);
done = true;
break;
case 0x12:
sahara_read64(fd, pkt, prog_mbn);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment