phy: don't spam console if phys property is absent in device node
PATCH 1/1 phy: don't spam console if phys property is absent in device node
In generic_phy_get_bulk(), if 'phys' property is absent in the device node then it is not an error condition.
Change print message verbosity to debug to avoid spamming console in such cases.
--- drivers/phy/phy-uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/phy/phy-uclass.c +1 -1
@@ -415,7 +415,7 @@ int generic_phy_get_bulk(struct udevice *dev, struct phy_bulk *bulk)if (!dev_read_prop (dev,"phys" ,NULL )) { phydev = dev->parent;if (!dev_read_prop (phydev,"phys" ,NULL )) { -pr_err ("%s : no phys property\n" , __func__); +pr_debug ("%s : no phys property\n" , __func__);return 0 ; } }
---
base-commit: 3073246d1be682071d8b3d07d06c2484907aed60
change-id: 20241203-nophys-0b539d183a16
Best regards,
Signature · 1 line
Roger Quadros <[email protected]>
Quoted 7 lines · Roger Quadros
In
generic_phy_get_bulk(), if 'phys' property is absent in the device node then it is not an error condition.Change print message verbosity to debug to avoid spamming console in such cases.
Signed-off-by Roger Quadros <[email protected]>
Regards,
Siddharth.
Quoted 8 lines · Roger Quadros
In
generic_phy_get_bulk(), if 'phys' property is absent in the device node then it is not an error condition.Change print message verbosity to debug to avoid spamming console in such cases.
[...]
Applied to u-boot/next, thanks!
Signature · 1 line
Tom