ACPI/IORT: Handle device properties with software node API
Subsystems (2)
PATCH 1/1 ACPI/IORT: Handle device properties with software node API
The older device property API is going to be removed. Replacing the device_add_properties() call with software node API equivalent device_create_managed_software_node().
--- drivers/acpi/arm64/iort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/acpi/arm64/iort.c +1 -1
@@ -976,7 +976,7 @@ static void iort_named_component_init(struct device *dev,FIELD_GET (ACPI_IORT_NC_PASID_BITS , nc->node_flags)); -if (device_add_properties (dev, props)) +if (device_create_managed_software_node (dev, props,NULL ))dev_warn (dev,"Could not add device properties\n" ); }
Signature · 1 line
2.30.2
Rafael J. Wysocki
maintainerQuoted 16 lines · Heikki Krogerus
The older device property API is going to be removed. Replacing the
device_add_properties()call with software node API equivalentdevice_create_managed_software_node().Fixes 434b73e61cc6 ("iommu/arm-smmu-v3: Use device properties for pasid-num-bits")Signed-off-by Heikki Krogerus <[email protected]>--- drivers/acpi/arm64/iort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/acpi/arm64/iort.c +0
-0
drivers/acpi/arm64/iort.c static void iort_named_component_init(struct device *dev,
Quoted 9 lines
drivers/acpi/arm64/iort.c +1
-2@@ -976,7 +976,7 @@ static void iort_named_component_init(struct device *dev,FIELD_GET (ACPI_IORT_NC_PASID_BITS , nc->node_flags)); -if (device_add_properties (dev, props)) +if (device_create_managed_software_node (dev, props,NULL ))dev_warn (dev,"Could not add device properties\n" ); } --
Thanks!
I can take this through the ACPI tree if there are no objections.
Hanjun Guo
maintainerQuoted 25 lines · Rafael J. Wysocki
Quoted 23 lines · Heikki Krogerus
The older device property API is going to be removed. Replacing the
device_add_properties()call with software node API equivalentdevice_create_managed_software_node().Fixes 434b73e61cc6 ("iommu/arm-smmu-v3: Use device properties for pasid-num-bits")Signed-off-by Heikki Krogerus<[email protected]>--- drivers/acpi/arm64/iort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/acpi/arm64/iort.c +1
-1@@ -976,7 +976,7 @@ static void iort_named_component_init(struct device *dev,FIELD_GET (ACPI_IORT_NC_PASID_BITS , nc->node_flags)); -if (device_add_properties (dev, props)) +if (device_create_managed_software_node (dev, props,NULL ))dev_warn (dev,"Could not add device properties\n" ); }
Quoted 4 lines
Quoted 1 line
--
Thanks!
I can take this through the ACPI tree if there are no objections.
Since this is related to device property API refactor, I'm fine with it.
Lorenzo, what's your position?
Thanks
Hanjun
Quoted 5 lines · Heikki Krogerus
The older device property API is going to be removed. Replacing the
device_add_properties()call with software node API equivalentdevice_create_managed_software_node().Fixes 434b73e61cc6 ("iommu/arm-smmu-v3: Use device properties for pasid-num-bits")
Is this really fixing anything ? I am not sure I understand what you would like to achieve with this tag.
Quoted 4 lines
Signed-off-by Heikki Krogerus <[email protected]>--- drivers/acpi/arm64/iort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
With the above comment clarified:
Quoted 16 lines
drivers/acpi/arm64/iort.c +1
-1@@ -976,7 +976,7 @@ static void iort_named_component_init(struct device *dev,FIELD_GET (ACPI_IORT_NC_PASID_BITS , nc->node_flags)); -if (device_add_properties (dev, props)) +if (device_create_managed_software_node (dev, props,NULL ))dev_warn (dev,"Could not add device properties\n" ); }Signature · 1 line
2.30.2
Quoted 9 lines · Lorenzo Pieralisi
Quoted 5 lines · Heikki Krogerus
The older device property API is going to be removed. Replacing the
device_add_properties()call with software node API equivalentdevice_create_managed_software_node().Fixes 434b73e61cc6 ("iommu/arm-smmu-v3: Use device properties for pasid-num-bits")Is this really fixing anything ? I am not sure I understand what you would like to achieve with this tag.
Right now it's not possible to simply remove the old API because some of the maintainers want to take care of the conversion themselves, but at the same time I also do not want to see any new releases of the kernel that introduce more users for it. That's why it's a fix.
Quoted 17 lines
Quoted 4 lines
Signed-off-by Heikki Krogerus <[email protected]>--- drivers/acpi/arm64/iort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)With the above comment clarified:
Quoted 8 lines
drivers/acpi/arm64/iort.c +0
-0@@ -976,7 +976,7 @@ static void iort_named_component_init(struct device *dev,FIELD_GET (ACPI_IORT_NC_PASID_BITS , nc->node_flags));
Quoted 8 lines
Quoted 8 lines
drivers/acpi/arm64/iort.c +1
-1-if (device_add_properties (dev, props)) +if (device_create_managed_software_node (dev, props,NULL ))dev_warn (dev,"Could not add device properties\n" ); }Signature · 1 line
2.30.2
thanks,
Signature · 1 line
heikki
Rafael J. Wysocki
maintainerQuoted 9 lines · Heikki Krogerus
Quoted 7 lines · Lorenzo Pieralisi
Quoted 5 lines · Heikki Krogerus
The older device property API is going to be removed. Replacing the
device_add_properties()call with software node API equivalentdevice_create_managed_software_node().Fixes 434b73e61cc6 ("iommu/arm-smmu-v3: Use device properties for pasid-num-bits")
Quoted 7 lines
Quoted 2 lines
Is this really fixing anything ? I am not sure I understand what you would like to achieve with this tag.
Right now it's not possible to simply remove the old API because some of the maintainers want to take care of the conversion themselves, but at the same time I also do not want to see any new releases of the kernel that introduce more users for it. That's why it's a fix.
With the assumption that the above clarification is sufficient, applied as 5.14 material, thanks!
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel