diff mbox series

[v8,5/9] ACPI/IORT: Enable stall support for platform devices

Message ID 20201112125519.3987595-6-jean-philippe@linaro.org
State New
Headers show
Series [v8,1/9] iommu: Add a page fault handler | expand

Commit Message

Jean-Philippe Brucker Nov. 12, 2020, 12:55 p.m. UTC
Copy the "Stall supported" bit, that tells whether a platform device
supports stall, into the fwspec struct.

Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>

---
 drivers/acpi/arm64/iort.c | 1 +
 1 file changed, 1 insertion(+)

-- 
2.29.1
diff mbox series

Patch

diff --git a/drivers/acpi/arm64/iort.c b/drivers/acpi/arm64/iort.c
index 70df1ecba7fe..3e39b2212388 100644
--- a/drivers/acpi/arm64/iort.c
+++ b/drivers/acpi/arm64/iort.c
@@ -968,6 +968,7 @@  static void iort_named_component_init(struct device *dev,
 	nc = (struct acpi_iort_named_component *)node->node_data;
 	fwspec->num_pasid_bits = FIELD_GET(ACPI_IORT_NC_PASID_BITS,
 					   nc->node_flags);
+	fwspec->can_stall = (nc->node_flags & ACPI_IORT_NC_STALL_SUPPORTED);
 }
 
 static int iort_nc_iommu_map(struct device *dev, struct acpi_iort_node *node)