From: Shawn Guo <shawnguo@kernel.org>
To: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: linux-arm-msm@vger.kernel.org, Shawn Guo <shawn.guo@linaro.org>
Subject: [PATCH] soc: qcom: mdt_loader: Drop PT_LOAD check on hash segment
Date: Tue, 24 Aug 2021 17:41:09 +0800 [thread overview]
Message-ID: <20210824094109.7272-1-shawnguo@kernel.org> (raw)
From: Shawn Guo <shawn.guo@linaro.org>
It's been observed on Sony Xperia M4 Aqua phone, that wcnss firmware has
the type of the second segment holding hashes just be PT_LOAD. So drop
the check on phdrs[1].p_type to get it go on that phone.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
---
drivers/soc/qcom/mdt_loader.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/soc/qcom/mdt_loader.c b/drivers/soc/qcom/mdt_loader.c
index eba7f76f9d61..6034cd8992b0 100644
--- a/drivers/soc/qcom/mdt_loader.c
+++ b/drivers/soc/qcom/mdt_loader.c
@@ -98,7 +98,7 @@ void *qcom_mdt_read_metadata(const struct firmware *fw, size_t *data_len)
if (ehdr->e_phnum < 2)
return ERR_PTR(-EINVAL);
- if (phdrs[0].p_type == PT_LOAD || phdrs[1].p_type == PT_LOAD)
+ if (phdrs[0].p_type == PT_LOAD)
return ERR_PTR(-EINVAL);
if ((phdrs[1].p_flags & QCOM_MDT_TYPE_MASK) != QCOM_MDT_TYPE_HASH)
--
2.17.1
next reply other threads:[~2021-08-24 9:41 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-24 9:41 Shawn Guo [this message]
2021-08-24 15:18 ` [PATCH] soc: qcom: mdt_loader: Drop PT_LOAD check on hash segment Marijn Suijten
2021-08-24 15:34 ` Marijn Suijten
2021-08-26 14:18 ` Shawn Guo
2021-08-26 20:52 ` Marijn Suijten
2021-08-27 6:24 ` Shawn Guo
2021-08-27 8:29 ` Marijn Suijten
2021-08-27 9:57 ` Shawn Guo
2021-08-27 10:46 ` Marijn Suijten
2021-08-27 14:12 ` Shawn Guo
2021-08-27 15:13 ` Marijn Suijten
2021-08-28 6:03 ` Shawn Guo
2021-08-28 8:58 ` Marijn Suijten
2021-08-27 16:07 ` Bjorn Andersson
2021-08-27 17:40 ` Marijn Suijten
2021-08-27 21:25 ` Bjorn Andersson
2021-08-27 23:42 ` Marijn Suijten
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210824094109.7272-1-shawnguo@kernel.org \
--to=shawnguo@kernel.org \
--cc=bjorn.andersson@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=shawn.guo@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox