aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2022-07-15 00:20:56 -0500
committerAndre Przywara <andre.przywara@arm.com>2022-07-18 11:25:40 +0100
commit62ee043325a3f282ddb4e4a15c555b810f094b76 (patch)
tree398de3ffe36735b6ad9e710b083cd18f6599cc65 /drivers
parent93118438243ba428b7f3949a3ba14a9ae54b7381 (diff)
downloadu-boot-62ee043325a3f282ddb4e4a15c555b810f094b76.zip
u-boot-62ee043325a3f282ddb4e4a15c555b810f094b76.tar.gz
u-boot-62ee043325a3f282ddb4e4a15c555b810f094b76.tar.bz2
net: sun8i-emac: Downgrade printf during probe to debug
This just prints the PHY mode taken from the devicetree. It does not need to be printed during every boot, and also avoids an unwanted line break for the "net: " reporting line. Signed-off-by: Samuel Holland <samuel@sholland.org> Reviewed-by: Andre Przywara <andre.przywara@arm.com> Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/sun8i_emac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/sun8i_emac.c b/drivers/net/sun8i_emac.c
index 2220f84..a4b3492 100644
--- a/drivers/net/sun8i_emac.c
+++ b/drivers/net/sun8i_emac.c
@@ -857,7 +857,7 @@ static int sun8i_emac_eth_of_to_plat(struct udevice *dev)
priv->phyaddr = fdtdec_get_int(gd->fdt_blob, offset, "reg", -1);
pdata->phy_interface = dev_read_phy_mode(dev);
- printf("phy interface%d\n", pdata->phy_interface);
+ debug("phy interface %d\n", pdata->phy_interface);
if (pdata->phy_interface == PHY_INTERFACE_MODE_NA)
return -EINVAL;