media: i2c: thp7312: use fwnode_for_each_child_node()
Subsystems (2)
PATCH v2 1/1 media: i2c: thp7312: use fwnode_for_each_child_node()
When fwnode_for_each_available_child_node() is used on the device-tree backed systems, it renders to same operation as the fwnode_for_each_child_node(), because the fwnode_for_each_child_node() does only iterate through those device-tree nodes which are available.
The thp7312 uses the fwnode_for_each_available_child_node() to look up and handle nodes with specific names. This means the code is used only on the device-tree backed systems because the node names have little meaning on ACPI or swnode backed systems.
Use the fwnode_for_each_child_node() instead of the fwnode_for_each_available_child_node() In order to make it clearly visible that the 'availability' of the nodes does not need to be explicitly considered here. This will also make it clearly visible that the code in this driver is suitable candidate to be converted to use the new fwnode_for_each_named_child_node()[2] when it gets merged.
[1]:
https://lore.kernel.org/all/[email protected]/
[2]:
https://lore.kernel.org/all/9c3880f74476436f39d796b5c10c540ae50b722c.1742225817.git.mazziesaccount@gmail.com/
---
Revision history:
v1 => v2:
- rephrase the commit message to not claim the 'availability' has no well defined meaning on the DT backed systems. Instead, explain that the fwnode_for_each_available_child_node() only iterates through the available nodes on the DT backed systems and is thus functionally equivalent to the fwnode_for_each_child_node().
NOTE: The change is compile tested only! Proper testing and reviewing is highly appreciated (as always).
--- drivers/media/i2c/thp7312.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/i2c/thp7312.c +1 -1
@@ -2067,7 +2067,7 @@ static int thp7312_parse_dt(struct thp7312_device *thp7312)return -EINVAL ; } -fwnode_for_each_available_child_node (sensors, node) { +fwnode_for_each_child_node (sensors, node) {if (fwnode_name_eq (node,"sensor" )) {if (!thp7312_sensor_parse_dt (thp7312, node)) num_sensors++;
base-commit: 7eb172143d5508b4da468ed59ee857c6e5e01da6
Signature · 1 line
2.48.1
Laurent Pinchart
maintainerHi Matti,
Thank you for the patch.
Quoted 4 lines · Matti Vaittinen
When
fwnode_for_each_available_child_node()is used on the device-tree backed systems, it renders to same operation as thefwnode_for_each_child_node(), because thefwnode_for_each_child_node()does only iterate through those device-tree nodes which are available.
This makes me wonder why the OF backend implements fwnode_for_each_child_node() as fwnode_for_each_available_child_node(). Is that on purpose, or is it a bug ?
Quoted 48 lines
The thp7312 uses the
fwnode_for_each_available_child_node()to look up and handle nodes with specific names. This means the code is used only on the device-tree backed systems because the node names have little meaning on ACPI or swnode backed systems.Use the
fwnode_for_each_child_node()instead of thefwnode_for_each_available_child_node()In order to make it clearly visible that the 'availability' of the nodes does not need to be explicitly considered here. This will also make it clearly visible that the code in this driver is suitable candidate to be converted to use the new fwnode_for_each_named_child_node()[2] when it gets merged.[1]: https://lore.kernel.org/all/[email protected]/
[2]: https://lore.kernel.org/all/9c3880f74476436f39d796b5c10c540ae50b722c.1742225817.git.mazziesaccount@gmail.com/Suggested-by Sakari Ailus <[email protected]>Signed-off-by Matti Vaittinen <[email protected]>---
Revision history:
v1 => v2:
- rephrase the commit message to not claim the 'availability' has no well defined meaning on the DT backed systems. Instead, explain that thefwnode_for_each_available_child_node()only iterates through the available nodes on the DT backed systems and is thus functionally equivalent to thefwnode_for_each_child_node().NOTE: The change is compile tested only! Proper testing and reviewing is highly appreciated (as always).
--- drivers/media/i2c/thp7312.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/media/i2c/thp7312.c +1
-1@@ -2067,7 +2067,7 @@ static int thp7312_parse_dt(struct thp7312_device *thp7312)return -EINVAL ; } -fwnode_for_each_available_child_node (sensors, node) { +fwnode_for_each_child_node (sensors, node) {if (fwnode_name_eq (node,"sensor" )) {if (!thp7312_sensor_parse_dt (thp7312, node)) num_sensors++;base-commit:
7eb172143d5508b4da468ed59ee857c6e5e01da6
Signature · 3 lines
Regards, Laurent Pinchart
Hi Laurent,
Quoted 5 lines · Laurent Pinchart
Hi Matti,
Thank you for the patch.
On Fri, Mar 21, 2025 at 10:58:27AM +0200, Matti Vaittinen wrote:
Quoted 8 lines
Quoted 4 lines
When
fwnode_for_each_available_child_node()is used on the device-tree backed systems, it renders to same operation as thefwnode_for_each_child_node(), because thefwnode_for_each_child_node()does only iterate through those device-tree nodes which are available.This makes me wonder why the OF backend implements
fwnode_for_each_child_node()asfwnode_for_each_available_child_node(). Is that on purpose, or is it a bug ?
I went back to see where this came from,I understand <URL:https://lkml.org/lkml/2014/10/17/185> is the first version of the patch adding device_get_next_child_node(). Since then the behaviour has been carried forward.
Cc Rafael.
Quoted 50 lines
Quoted 49 lines
The thp7312 uses the
fwnode_for_each_available_child_node()to look up and handle nodes with specific names. This means the code is used only on the device-tree backed systems because the node names have little meaning on ACPI or swnode backed systems.Use the
fwnode_for_each_child_node()instead of thefwnode_for_each_available_child_node()In order to make it clearly visible that the 'availability' of the nodes does not need to be explicitly considered here. This will also make it clearly visible that the code in this driver is suitable candidate to be converted to use the new fwnode_for_each_named_child_node()[2] when it gets merged.[1]: https://lore.kernel.org/all/[email protected]/
[2]: https://lore.kernel.org/all/9c3880f74476436f39d796b5c10c540ae50b722c.1742225817.git.mazziesaccount@gmail.com/Suggested-by Sakari Ailus <[email protected]>Signed-off-by Matti Vaittinen <[email protected]>---
Revision history:
v1 => v2:
- rephrase the commit message to not claim the 'availability' has no well defined meaning on the DT backed systems. Instead, explain that thefwnode_for_each_available_child_node()only iterates through the available nodes on the DT backed systems and is thus functionally equivalent to thefwnode_for_each_child_node().NOTE: The change is compile tested only! Proper testing and reviewing is highly appreciated (as always).
--- drivers/media/i2c/thp7312.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/media/i2c/thp7312.c +1
-1@@ -2067,7 +2067,7 @@ static int thp7312_parse_dt(struct thp7312_device *thp7312)return -EINVAL ; } -fwnode_for_each_available_child_node (sensors, node) { +fwnode_for_each_child_node (sensors, node) {if (fwnode_name_eq (node,"sensor" )) {if (!thp7312_sensor_parse_dt (thp7312, node)) num_sensors++;base-commit:
7eb172143d5508b4da468ed59ee857c6e5e01da6
Signature · 3 lines
Kind regards, Sakari Ailus
Sakari Ailus
Reviewed-byHi Laurent, Matti,
Quoted 5 lines · Laurent Pinchart
Hi Matti,
Thank you for the patch.
On Fri, Mar 21, 2025 at 10:58:27AM +0200, Matti Vaittinen wrote:
Quoted 8 lines
Quoted 4 lines
When
fwnode_for_each_available_child_node()is used on the device-tree backed systems, it renders to same operation as thefwnode_for_each_child_node(), because thefwnode_for_each_child_node()does only iterate through those device-tree nodes which are available.This makes me wonder why the OF backend implements
fwnode_for_each_child_node()asfwnode_for_each_available_child_node(). Is that on purpose, or is it a bug ?
I discussed this with Rafael and he didn't recall why the original implementation was like that. The general direction later on has been not to present unavailable nodes over the fwnode interface.
So I'd say:
We should also change the documentation of the fwnode API accordingly.
Quoted 50 lines
Quoted 49 lines
The thp7312 uses the
fwnode_for_each_available_child_node()to look up and handle nodes with specific names. This means the code is used only on the device-tree backed systems because the node names have little meaning on ACPI or swnode backed systems.Use the
fwnode_for_each_child_node()instead of thefwnode_for_each_available_child_node()In order to make it clearly visible that the 'availability' of the nodes does not need to be explicitly considered here. This will also make it clearly visible that the code in this driver is suitable candidate to be converted to use the new fwnode_for_each_named_child_node()[2] when it gets merged.[1]: https://lore.kernel.org/all/[email protected]/
[2]: https://lore.kernel.org/all/9c3880f74476436f39d796b5c10c540ae50b722c.1742225817.git.mazziesaccount@gmail.com/Suggested-by Sakari Ailus <[email protected]>Signed-off-by Matti Vaittinen <[email protected]>---
Revision history:
v1 => v2:
- rephrase the commit message to not claim the 'availability' has no well defined meaning on the DT backed systems. Instead, explain that thefwnode_for_each_available_child_node()only iterates through the available nodes on the DT backed systems and is thus functionally equivalent to thefwnode_for_each_child_node().NOTE: The change is compile tested only! Proper testing and reviewing is highly appreciated (as always).
--- drivers/media/i2c/thp7312.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/media/i2c/thp7312.c +1
-1@@ -2067,7 +2067,7 @@ static int thp7312_parse_dt(struct thp7312_device *thp7312)return -EINVAL ; } -fwnode_for_each_available_child_node (sensors, node) { +fwnode_for_each_child_node (sensors, node) {if (fwnode_name_eq (node,"sensor" )) {if (!thp7312_sensor_parse_dt (thp7312, node)) num_sensors++;base-commit:
7eb172143d5508b4da468ed59ee857c6e5e01da6
Signature · 3 lines
Regards, Sakari Ailus
Laurent Pinchart
maintainerHi Sakari,
Quoted 15 lines · Sakari Ailus
Quoted 9 lines · Laurent Pinchart
Quoted 4 lines · Matti Vaittinen
When
fwnode_for_each_available_child_node()is used on the device-tree backed systems, it renders to same operation as thefwnode_for_each_child_node(), because thefwnode_for_each_child_node()does only iterate through those device-tree nodes which are available.This makes me wonder why the OF backend implements
fwnode_for_each_child_node()asfwnode_for_each_available_child_node(). Is that on purpose, or is it a bug ?I discussed this with Rafael and he didn't recall why the original implementation was like that. The general direction later on has been not to present unavailable nodes over the fwnode interface.
Quoted 5 lines
So I'd say:
Reviewed-by Sakari Ailus <[email protected]>We should also change the documentation of the fwnode API accordingly.
Does that also mean that the fwnode_for_each_available_child_node() function will be dropped ? It's used by few drivers (5 in addition to the thp7312 driver, plus 3 call sites in drivers/base/core.c), so a patch series to drop it should be easy.
Quoted 48 lines
Quoted 48 lines
Quoted 48 lines
The thp7312 uses the
fwnode_for_each_available_child_node()to look up and handle nodes with specific names. This means the code is used only on the device-tree backed systems because the node names have little meaning on ACPI or swnode backed systems.Use the
fwnode_for_each_child_node()instead of thefwnode_for_each_available_child_node()In order to make it clearly visible that the 'availability' of the nodes does not need to be explicitly considered here. This will also make it clearly visible that the code in this driver is suitable candidate to be converted to use the new fwnode_for_each_named_child_node()[2] when it gets merged.[1]: https://lore.kernel.org/all/[email protected]/
[2]: https://lore.kernel.org/all/9c3880f74476436f39d796b5c10c540ae50b722c.1742225817.git.mazziesaccount@gmail.com/Suggested-by Sakari Ailus <[email protected]>Signed-off-by Matti Vaittinen <[email protected]>---
Revision history:
v1 => v2:
- rephrase the commit message to not claim the 'availability' has no well defined meaning on the DT backed systems. Instead, explain that thefwnode_for_each_available_child_node()only iterates through the available nodes on the DT backed systems and is thus functionally equivalent to thefwnode_for_each_child_node().NOTE: The change is compile tested only! Proper testing and reviewing is highly appreciated (as always).
--- drivers/media/i2c/thp7312.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/media/i2c/thp7312.c +1
-1@@ -2067,7 +2067,7 @@ static int thp7312_parse_dt(struct thp7312_device *thp7312)return -EINVAL ; } -fwnode_for_each_available_child_node (sensors, node) { +fwnode_for_each_child_node (sensors, node) {if (fwnode_name_eq (node,"sensor" )) {if (!thp7312_sensor_parse_dt (thp7312, node)) num_sensors++;base-commit:
7eb172143d5508b4da468ed59ee857c6e5e01da6
Signature · 3 lines
Regards, Laurent Pinchart
Quoted 20 lines · Laurent Pinchart
Hi Sakari,
Quoted 17 lines · Sakari Ailus
Quoted 9 lines · Laurent Pinchart
Quoted 4 lines · Matti Vaittinen
When
fwnode_for_each_available_child_node()is used on the device-tree backed systems, it renders to same operation as thefwnode_for_each_child_node(), because thefwnode_for_each_child_node()does only iterate through those device-tree nodes which are available.This makes me wonder why the OF backend implements
fwnode_for_each_child_node()asfwnode_for_each_available_child_node(). Is that on purpose, or is it a bug ?I discussed this with Rafael and he didn't recall why the original implementation was like that. The general direction later on has been not to present unavailable nodes over the fwnode interface.
So I'd say:
Quoted 9 lines
Quoted 3 lines
Reviewed-by Sakari Ailus <[email protected]>We should also change the documentation of the fwnode API accordingly.
Does that also mean that the
fwnode_for_each_available_child_node()function will be dropped ? It's used by few drivers (5 in addition to the thp7312 driver, plus 3 call sites indrivers/base/core.c), so a patch series to drop it should be easy.
I assume the fwnode_for_each_available_child_node() still makes sense for ACPI backed users, no?
Yours,
-- Matti
Hei Laurent, Matti,
Quoted 25 lines · Matti Vaittinen
Quoted 24 lines · Laurent Pinchart
Hi Sakari,
Quoted 20 lines · Sakari Ailus
Quoted 9 lines · Laurent Pinchart
Quoted 4 lines · Matti Vaittinen
When
fwnode_for_each_available_child_node()is used on the device-tree backed systems, it renders to same operation as thefwnode_for_each_child_node(), because thefwnode_for_each_child_node()does only iterate through those device-tree nodes which are available.This makes me wonder why the OF backend implements
fwnode_for_each_child_node()asfwnode_for_each_available_child_node(). Is that on purpose, or is it a bug ?I discussed this with Rafael and he didn't recall why the original implementation was like that. The general direction later on has been not to present unavailable nodes over the fwnode interface.
So I'd say:
Reviewed-by Sakari Ailus <[email protected]>We should also change the documentation of the fwnode API accordingly.
Quoted 8 lines
Quoted 5 lines
Does that also mean that the
fwnode_for_each_available_child_node()function will be dropped ? It's used by few drivers (5 in addition to the thp7312 driver, plus 3 call sites indrivers/base/core.c), so a patch series to drop it should be easy.I assume the
fwnode_for_each_available_child_node()still makes sense for ACPI backed users, no?
Not really (see my earlier explanation in <[email protected]>). I think all the *available* stuff should be removed from include/linux/property.h, apart from fwnode_device_is_availble(), which should be turned to work on struct device to signal its availability for device nodes only.
Signature · 3 lines
Terveisin, Sakari Ailus
Quoted 34 lines · Sakari Ailus
Hei Laurent, Matti,
Quoted 31 lines · Matti Vaittinen
Quoted 29 lines · Laurent Pinchart
Hi Sakari,
Quoted 15 lines · Sakari Ailus
Quoted 9 lines · Laurent Pinchart
Quoted 4 lines · Matti Vaittinen
When
fwnode_for_each_available_child_node()is used on the device-tree backed systems, it renders to same operation as thefwnode_for_each_child_node(), because thefwnode_for_each_child_node()does only iterate through those device-tree nodes which are available.This makes me wonder why the OF backend implements
fwnode_for_each_child_node()asfwnode_for_each_available_child_node(). Is that on purpose, or is it a bug ?I discussed this with Rafael and he didn't recall why the original implementation was like that. The general direction later on has been not to present unavailable nodes over the fwnode interface.
Quoted 5 lines
So I'd say:
Reviewed-by Sakari Ailus <[email protected]>We should also change the documentation of the fwnode API accordingly.
Does that also mean that the
fwnode_for_each_available_child_node()function will be dropped ? It's used by few drivers (5 in addition to the thp7312 driver, plus 3 call sites indrivers/base/core.c), so a patch series to drop it should be easy.
Quoted 5 lines
Quoted 2 lines
I assume the
fwnode_for_each_available_child_node()still makes sense for ACPI backed users, no?Not really (see my earlier explanation in
<[email protected]>).
I capture that the _named_ available nodes don't have value as ACPI names aren't really what is expected by the _named_ callers. What I didn't pick is that the fwnode_for_each_available_child_node() - which should iterate all available child nodes ignoring the name - wouldn't be useful.
Quoted 4 lines
I think all the *available* stuff
should be removed frominclude/linux/property.h, apart fromfwnode_device_is_availble(), which should be turned to work on struct device to signal its availability for device nodes only.
I am not saying I have any understanding of the uses of the 'unavailable' nodes. As such I am not arguing over what you say here :)
Yours,
-- Matti
Moi,
Quoted 38 lines · Matti Vaittinen
Quoted 37 lines · Sakari Ailus
Hei Laurent, Matti,
Quoted 33 lines · Matti Vaittinen
Quoted 20 lines · Laurent Pinchart
Hi Sakari,
Quoted 17 lines · Sakari Ailus
Quoted 9 lines · Laurent Pinchart
Quoted 4 lines · Matti Vaittinen
When
fwnode_for_each_available_child_node()is used on the device-tree backed systems, it renders to same operation as thefwnode_for_each_child_node(), because thefwnode_for_each_child_node()does only iterate through those device-tree nodes which are available.This makes me wonder why the OF backend implements
fwnode_for_each_child_node()asfwnode_for_each_available_child_node(). Is that on purpose, or is it a bug ?I discussed this with Rafael and he didn't recall why the original implementation was like that. The general direction later on has been not to present unavailable nodes over the fwnode interface.
So I'd say:
Quoted 9 lines
Quoted 3 lines
Reviewed-by Sakari Ailus <[email protected]>We should also change the documentation of the fwnode API accordingly.
Does that also mean that the
fwnode_for_each_available_child_node()function will be dropped ? It's used by few drivers (5 in addition to the thp7312 driver, plus 3 call sites indrivers/base/core.c), so a patch series to drop it should be easy.I assume the
fwnode_for_each_available_child_node()still makes sense for ACPI backed users, no?
Quoted 7 lines
Quoted 2 lines
Not really (see my earlier explanation in
<[email protected]>).I capture that the _named_ available nodes don't have value as ACPI names aren't really what is expected by the _named_ callers. What I didn't pick is that the
fwnode_for_each_available_child_node()- which should iterate all available child nodes ignoring the name - wouldn't be useful.
Fair enough. I don't think we need to support enumerating unavailable ACPI device nodes in this API. I'd indeed change the behaviour so that only available nodes are enumerated. I can post a patch for that.
Quoted 8 lines
Quoted 5 lines
I think all the *available* stuff
should be removed frominclude/linux/property.h, apart fromfwnode_device_is_availble(), which should be turned to work on struct device to signal its availability for device nodes only.I am not saying I have any understanding of the uses of the 'unavailable' nodes. As such I am not arguing over what you say here :)
Signature · 3 lines
Kind regards, Sakari Ailus
Laurent Pinchart
maintainerQuoted 44 lines · Sakari Ailus
Moi,
Quoted 41 lines · Matti Vaittinen
Quoted 39 lines · Sakari Ailus
Hei Laurent, Matti,
Quoted 25 lines · Matti Vaittinen
Quoted 24 lines · Laurent Pinchart
Hi Sakari,
Quoted 20 lines · Sakari Ailus
Quoted 9 lines · Laurent Pinchart
Quoted 4 lines · Matti Vaittinen
When
fwnode_for_each_available_child_node()is used on the device-tree backed systems, it renders to same operation as thefwnode_for_each_child_node(), because thefwnode_for_each_child_node()does only iterate through those device-tree nodes which are available.This makes me wonder why the OF backend implements
fwnode_for_each_child_node()asfwnode_for_each_available_child_node(). Is that on purpose, or is it a bug ?I discussed this with Rafael and he didn't recall why the original implementation was like that. The general direction later on has been not to present unavailable nodes over the fwnode interface.
So I'd say:
Reviewed-by Sakari Ailus <[email protected]>We should also change the documentation of the fwnode API accordingly.
Quoted 8 lines
Quoted 5 lines
Does that also mean that the
fwnode_for_each_available_child_node()function will be dropped ? It's used by few drivers (5 in addition to the thp7312 driver, plus 3 call sites indrivers/base/core.c), so a patch series to drop it should be easy.I assume the
fwnode_for_each_available_child_node()still makes sense for ACPI backed users, no?Not really (see my earlier explanation in
<[email protected]>).
Quoted 8 lines
Quoted 4 lines
I capture that the _named_ available nodes don't have value as ACPI names aren't really what is expected by the _named_ callers. What I didn't pick is that the
fwnode_for_each_available_child_node()- which should iterate all available child nodes ignoring the name - wouldn't be useful.Fair enough. I don't think we need to support enumerating unavailable ACPI device nodes in this API. I'd indeed change the behaviour so that only available nodes are enumerated. I can post a patch for that.
Unless there's a specific reason against it that I wouldn't be aware of, I would also very much favour merging the fwnode_for_each_child_node() and fwnode_for_each_available_child_node() functions into a single one that only enumerates available nodes, with a consistent behaviour across all backend. Having fwnode_for_each_child_node() return unavailable ACPI nodes but not unavailable DT nodes would be really confusing.
Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
I think all the *available* stuff
should be removed frominclude/linux/property.h, apart fromfwnode_device_is_availble(), which should be turned to work on struct device to signal its availability for device nodes only.I am not saying I have any understanding of the uses of the 'unavailable' nodes. As such I am not arguing over what you say here :)
Signature · 3 lines
Regards, Laurent Pinchart
Quoted 54 lines · Laurent Pinchart
Quoted 44 lines · Sakari Ailus
Moi,
Quoted 41 lines · Matti Vaittinen
Quoted 39 lines · Sakari Ailus
Hei Laurent, Matti,
Quoted 25 lines · Matti Vaittinen
Quoted 24 lines · Laurent Pinchart
Hi Sakari,
Quoted 20 lines · Sakari Ailus
Quoted 9 lines · Laurent Pinchart
Quoted 4 lines · Matti Vaittinen
When
fwnode_for_each_available_child_node()is used on the device-tree backed systems, it renders to same operation as thefwnode_for_each_child_node(), because thefwnode_for_each_child_node()does only iterate through those device-tree nodes which are available.This makes me wonder why the OF backend implements
fwnode_for_each_child_node()asfwnode_for_each_available_child_node(). Is that on purpose, or is it a bug ?I discussed this with Rafael and he didn't recall why the original implementation was like that. The general direction later on has been not to present unavailable nodes over the fwnode interface.
So I'd say:
Reviewed-by Sakari Ailus <[email protected]>We should also change the documentation of the fwnode API accordingly.
Quoted 8 lines
Quoted 5 lines
Does that also mean that the
fwnode_for_each_available_child_node()function will be dropped ? It's used by few drivers (5 in addition to the thp7312 driver, plus 3 call sites indrivers/base/core.c), so a patch series to drop it should be easy.I assume the
fwnode_for_each_available_child_node()still makes sense for ACPI backed users, no?Not really (see my earlier explanation in
<[email protected]>).Quoted 8 lines
Quoted 4 lines
I capture that the _named_ available nodes don't have value as ACPI names aren't really what is expected by the _named_ callers. What I didn't pick is that the
fwnode_for_each_available_child_node()- which should iterate all available child nodes ignoring the name - wouldn't be useful.Fair enough. I don't think we need to support enumerating unavailable ACPI device nodes in this API. I'd indeed change the behaviour so that only available nodes are enumerated. I can post a patch for that.
Quoted 6 lines
Unless there's a specific reason against it that I wouldn't be aware of, I would also very much favour merging the
fwnode_for_each_child_node()andfwnode_for_each_available_child_node()functions into a single one that only enumerates available nodes, with a consistent behaviour across all backend. Havingfwnode_for_each_child_node()return unavailable ACPI nodes but not unavailable DT nodes would be really confusing.
Absolutely no objections.
Yours,
-- Matti