]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/arm-smmu-qcom: hook up qcom_smmu_impl for ACPI boot
authorShawn Guo <shawn.guo@linaro.org>
Sun, 9 May 2021 02:26:07 +0000 (10:26 +0800)
committerWill Deacon <will@kernel.org>
Tue, 8 Jun 2021 10:03:09 +0000 (11:03 +0100)
commitb9b56d17970032642c1f58479d92e8a41f75fe5e
treed030e1105b66cc8b6f0f187ffb9c7e139625bdd9
parent70cbf5cd52e65b9e7ea198f97a0465a1d703a656
iommu/arm-smmu-qcom: hook up qcom_smmu_impl for ACPI boot

The hookup with qcom_smmu_impl is required to do ACPI boot on SC8180X
based devices like Lenovo Flex 5G laptop and Microsoft Surface Pro X.
Define acpi_platform_list for these platforms and match them using
acpi_match_platform_list() call, and create qcom_smmu_impl accordingly.

(np == NULL) is used to check ACPI boot, because fwnode of SMMU device
is a static allocation and thus helpers like has_acpi_companion() don't
work here.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20210509022607.17534-1-shawn.guo@linaro.org
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c