[2/2,SRU,Bionic] ACPI/IORT: Remove temporary iort_get_id_mapping_index() ACPICA guard

Message ID 20180803165225.7277-3-dann.frazier@canonical.com
State New
Headers show
  • Support MSI control interrupts for SMMUv3
Related show

Commit Message

dann frazier Aug. 3, 2018, 4:52 p.m.
From: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>

BugLink: https://bugs.launchpad.net/bugs/1785282

In IORT issue C SMMUv3 IORT nodes gained an additional field (DeviceID
mapping index) so that the SMMUv3 can describe its MSI interrupts.

Referring to it in the kernel requires ACPICA changes and in order
to prevent kernel<->ACPICA dependencies kernel code depending on the
SMMUv3 DeviceID mapping index field was guarded with an ACPICA version

ACPICA changes introducing DeviceID mapping index in the IORT structs
were integrated in the kernel with:

commit 4c106aa411ee ("ACPICA: iasl: Add SMMUv3 device ID mapping index

so the temporary ACPICA guard has become stale and can be removed.

Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Hanjun Guo <hanjun.guo@linaro.org>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Hanjun Guo <hanjun.guo@linaro.org>
Cc: Sudeep Holla <sudeep.holla@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
(cherry picked from commit 6c47506361ecd9591813bbaaca518f8a76162a3d)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
 drivers/acpi/arm64/iort.c | 7 -------
 1 file changed, 7 deletions(-)


diff --git a/drivers/acpi/arm64/iort.c b/drivers/acpi/arm64/iort.c
index 95255ecfae7c7..a84a5787bbd2d 100644
--- a/drivers/acpi/arm64/iort.c
+++ b/drivers/acpi/arm64/iort.c
@@ -366,7 +366,6 @@  static struct acpi_iort_node *iort_node_get_id(struct acpi_iort_node *node,
 	return NULL;
-#if (ACPI_CA_VERSION > 0x20170929)
 static int iort_get_id_mapping_index(struct acpi_iort_node *node)
 	struct acpi_iort_smmu_v3 *smmu;
@@ -400,12 +399,6 @@  static int iort_get_id_mapping_index(struct acpi_iort_node *node)
 		return -EINVAL;
-static inline int iort_get_id_mapping_index(struct acpi_iort_node *node)
-	return -EINVAL;
 static struct acpi_iort_node *iort_node_map_id(struct acpi_iort_node *node,
 					       u32 id_in, u32 *id_out,