Skip to contentSkip to conversation

IOMMU: Intel: DMAR: Replace acpi_bus_get_device()

PATCH In review Rafael J. Wysocki 3 participants 3 messages Feb 1, 2022 – Feb 14, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 IOMMU: Intel: DMAR: Replace acpi_bus_get_device()

From: Rafael J. Wysocki <[email protected]>

Replace acpi_bus_get_device() that is going to be dropped with acpi_fetch_acpi_dev().

No intentional functional impact.

---
 drivers/iommu/intel/dmar.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/iommu/intel/dmar.c +2 -1
Index: linux-pm/drivers/iommu/intel/dmar.c
===================================================================
@@ -789,7 +789,8 @@ static int __init dmar_acpi_dev_scope_in
 				       andd->device_name);
 				continue;
 			}
-			if (acpi_bus_get_device(h, &adev)) {
+			adev = acpi_fetch_acpi_dev(h);
+			if (!adev) {
 				pr_err("Failed to get device for ACPI object %s\n",
 				       andd->device_name);
 				continue;
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 17 lines · Rafael J. Wysocki

From: Rafael J. Wysocki <[email protected]>

Replace acpi_bus_get_device() that is going to be dropped with acpi_fetch_acpi_dev().

No intentional functional impact.

---
  drivers/iommu/intel/dmar.c |    3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)

Index: linux-pm/drivers/iommu/intel/dmar.c
===================================================================

drivers/iommu/intel/dmar.c static int __init dmar_acpi_dev_scope_in · line 796

Quoted 9 lines
drivers/iommu/intel/dmar.c +2 -1
@@ -789,7 +789,8 @@ static int __init dmar_acpi_dev_scope_in
  				       andd->device_name);
  				continue;
  			}
-			if (acpi_bus_get_device(h, &adev)) {
+			adev = acpi_fetch_acpi_dev(h);
+			if (!adev) {
  				pr_err("Failed to get device for ACPI object %s\n",
  				       andd->device_name);
  				continue;

Please adjust the patch title to "iommu/vtd: Replace acpi_bus_get_device()"

Best regards,
baolu

maintainer
#2 lore raw
In reply to Rafael J. Wysocki
Quoted 11 lines · Rafael J. Wysocki

From: Rafael J. Wysocki <[email protected]>

Replace acpi_bus_get_device() that is going to be dropped with acpi_fetch_acpi_dev().

No intentional functional impact.

---
 drivers/iommu/intel/dmar.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Applied with adjusted subject, thanks Rafael.

_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu