soc: qcom: mdt_loader: Allow hash segment to be split out
authorBjorn Andersson <bjorn.andersson@linaro.org>
Fri, 28 Jan 2022 02:55:03 +0000 (18:55 -0800)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 3 Feb 2022 21:32:30 +0000 (15:32 -0600)
commit8bd42e2341a7857010001f08ee1729ced3b0e394
treec36cc5648563696f284218ae55cde7a3ae8c23e2
parent26c1f17013a8292fa2bd59917bace883e1fe6afa
soc: qcom: mdt_loader: Allow hash segment to be split out

It's been observed that some firmware found in a Qualcomm SM8450 device
has the hash table in a separate .bNN file. Use the newly extracted
helper function to load this segment from the separate file, if it's
determined that the hashes are not part of the already loaded firmware.

In order to do this, the function needs access to the firmware basename
and to provide more useful error messages a struct device to associate
the errors with.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20220128025513.97188-4-bjorn.andersson@linaro.org
drivers/remoteproc/qcom_q6v5_mss.c
drivers/soc/qcom/mdt_loader.c
include/linux/soc/qcom/mdt_loader.h