]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
remoteproc: qcom: q6v5-pil: Assign the relocated address
authorSibi Sankar <sibis@codeaurora.org>
Fri, 27 Jul 2018 15:20:03 +0000 (20:50 +0530)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 8 Oct 2018 06:50:18 +0000 (23:50 -0700)
Assign the relocated base of the modem image, as the offsets
from the virtual memory might not be based on the physical
address.

Signed-off-by: Sibi Sankar <sibis@codeaurora.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/qcom_q6v5_mss.c

index a839b07a58b1df7414de756b1cd0917073cf30df..3448f1df2e8774b1cae5ac4ad0c710583d16d288 100644 (file)
@@ -731,6 +731,7 @@ static int q6v5_mpss_load(struct q6v5 *qproc)
        }
 
        mpss_reloc = relocate ? min_addr : qproc->mpss_phys;
+       qproc->mpss_reloc = mpss_reloc;
        /* Load firmware segments */
        for (i = 0; i < ehdr->e_phnum; i++) {
                phdr = &phdrs[i];