Skip to content

Commit 6147eb5

Browse files
committed
Merge tag 'qcom-drivers-fixes-for-5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/qcom/linux into arm/fixes
Qualcomm driver fixes for v5.15 This restricts the QCOM_SCM driver to depend on ARCH_QCOM, to reduce it's presence after becoming a loadable module. It then fixes a regression in the mdt_loader, where firmware with the hash segment marked as PT_LOAD would no longer be accepted, preventing several MSM8974 and SDM660 devices from loading remoteproc firmware. Lastly it corrects the drvdata associated with the socinfo device during probe, to match that expected by the remove function. * tag 'qcom-drivers-fixes-for-5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/qcom/linux: firmware: qcom_scm: QCOM_SCM should depend on ARCH_QCOM soc: qcom: mdt_loader: Drop PT_LOAD check on hash segment soc: qcom: socinfo: Fixed argument passed to platform_set_data() Link: https://lore.kernel.org/r/20210930025456.1035-1-bjorn.andersson@linaro.org Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2 parents 04e0ae8 + 4382c73 commit 6147eb5

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎drivers/firmware/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ config INTEL_STRATIX10_RSU
204204

205205
config QCOM_SCM
206206
tristate "Qcom SCM driver"
207-
depends on ARM || ARM64
207+
depends on ARCH_QCOM || COMPILE_TEST
208208
depends on HAVE_ARM_SMCCC
209209
select RESET_CONTROLLER
210210

‎drivers/soc/qcom/mdt_loader.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ void *qcom_mdt_read_metadata(const struct firmware *fw, size_t *data_len)
9898
if (ehdr->e_phnum < 2)
9999
return ERR_PTR(-EINVAL);
100100

101-
if (phdrs[0].p_type == PT_LOAD || phdrs[1].p_type == PT_LOAD)
101+
if (phdrs[0].p_type == PT_LOAD)
102102
return ERR_PTR(-EINVAL);
103103

104104
if ((phdrs[1].p_flags & QCOM_MDT_TYPE_MASK) != QCOM_MDT_TYPE_HASH)

‎drivers/soc/qcom/socinfo.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ static int qcom_socinfo_probe(struct platform_device *pdev)
628628
/* Feed the soc specific unique data into entropy pool */
629629
add_device_randomness(info, item_size);
630630

631-
platform_set_drvdata(pdev, qs->soc_dev);
631+
platform_set_drvdata(pdev, qs);
632632

633633
return 0;
634634
}

0 commit comments

Comments
 (0)