net: fman_memac: Don't use of_property_read_bool on non-boolean property managed
Subsystems (3)
PATCH 1/1 net: fman_memac: Don't use of_property_read_bool on non-boolean property managed
'managed' is a non-boolean property specified in ethernet-controller.yaml. Since commit c141ecc3cecd7 ("of: Warn when of_property_read_bool() is used on non-boolean properties") this raises a warning. Use the replacement of_property_present() instead.
--- drivers/net/ethernet/freescale/fman/fman_memac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/freescale/fman/fman_memac.c +1 -1
@@ -1225,7 +1225,7 @@ int memac_initialization(struct mac_device *mac_dev,* be careful and not enable this if we are using MII or RGMII, since * those configurations modes don't use in-band autonegotiation. */ -if (!of_property_read_bool (mac_node,"managed" ) && +if (!of_property_present (mac_node,"managed" ) && mac_dev->phy_if !=PHY_INTERFACE_MODE_MII && !phy_interface_mode_is_rgmii (mac_dev->phy_if)) mac_dev->phylink_config.default_an_inband = true;
Signature · 1 line
2.43.0
Quoted 15 lines · Alexander Stein
'managed' is a non-boolean property specified in
ethernet-controller.yaml. Since commitc141ecc3cecd7("of: Warn whenof_property_read_bool()is used on non-boolean properties") this raises a warning. Use the replacementof_property_present()instead.Signed-off-by Alexander Stein <[email protected]>--- drivers/net/ethernet/freescale/fman/fman_memac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/net/ethernet/freescale/fman/fman_memac.c +0
-0
drivers/net/ethernet/freescale/fman/fman_memac.c int memac_initialization(struct mac_device *mac_dev, · line 1231
Quoted 8 lines
drivers/net/ethernet/freescale/fman/fman_memac.c +1
-1@@ -1225,7 +1225,7 @@ int memac_initialization(struct mac_device *mac_dev,* be careful and not enable this if we are using MII or RGMII, since * those configurations modes don't use in-band autonegotiation. */ -if (!of_property_read_bool (mac_node,"managed" ) && +if (!of_property_present (mac_node,"managed" ) && mac_dev->phy_if !=PHY_INTERFACE_MODE_MII && !phy_interface_mode_is_rgmii (mac_dev->phy_if)) mac_dev->phylink_config.default_an_inband = true;
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 8 lines · On Tue, 10 Jun 2025 13:40:56 +0200 you wrote:
'managed' is a non-boolean property specified in
ethernet-controller.yaml. Since commitc141ecc3cecd7("of: Warn whenof_property_read_bool()is used on non-boolean properties") this raises a warning. Use the replacementof_property_present()instead.Signed-off-by Alexander Stein <[email protected]>[...]
Here is the summary with links:
- [1/1] net: fman_memac: Don't use of_property_read_bool on non-boolean property managed
https://git.kernel.org/netdev/net-next/c/7781c4f70305
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html