diff options
author | Jean-Philippe Brucker <jean-philippe@linaro.org> | 2021-05-26 18:19:27 +0200 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2021-06-08 12:35:55 +0100 |
commit | 6522b1e0c78fc6947b58178446ca851690374f0d (patch) | |
tree | 9436b5ac843a1c31c572b81b37de6fd987072ae4 /drivers/acpi | |
parent | ed1d08b9d0c9baed54a74073eae6c28d1e5422e8 (diff) | |
download | linux-stable-6522b1e0c78fc6947b58178446ca851690374f0d.tar.gz linux-stable-6522b1e0c78fc6947b58178446ca851690374f0d.tar.bz2 linux-stable-6522b1e0c78fc6947b58178446ca851690374f0d.zip |
ACPI/IORT: Enable stall support for platform devices
Copy the "Stall supported" bit, that tells whether a named component
supports stall, into the dma-can-stall device property.
Acked-by: Hanjun Guo <guohanjun@huawei.com>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Link: https://lore.kernel.org/r/20210526161927.24268-3-jean-philippe@linaro.org
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/arm64/iort.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/acpi/arm64/iort.c b/drivers/acpi/arm64/iort.c index 3912a1f6058e..0828f70cb782 100644 --- a/drivers/acpi/arm64/iort.c +++ b/drivers/acpi/arm64/iort.c @@ -968,13 +968,15 @@ static int iort_pci_iommu_init(struct pci_dev *pdev, u16 alias, void *data) static void iort_named_component_init(struct device *dev, struct acpi_iort_node *node) { - struct property_entry props[2] = {}; + struct property_entry props[3] = {}; struct acpi_iort_named_component *nc; nc = (struct acpi_iort_named_component *)node->node_data; props[0] = PROPERTY_ENTRY_U32("pasid-num-bits", FIELD_GET(ACPI_IORT_NC_PASID_BITS, nc->node_flags)); + if (nc->node_flags & ACPI_IORT_NC_STALL_SUPPORTED) + props[1] = PROPERTY_ENTRY_BOOL("dma-can-stall"); if (device_add_properties(dev, props)) dev_warn(dev, "Could not add device properties\n"); |