public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Andre Przywara <andre.przywara@arm.com>
To: Samuel Holland <samuel@sholland.org>
Cc: u-boot@lists.denx.de, Jagan Teki <jagan@amarulasolutions.com>,
	Joe Hershberger <joe.hershberger@ni.com>,
	Ramon Fried <rfried.dev@gmail.com>
Subject: Re: [PATCH 1/3] net: sun8i-emac: Downgrade printf during probe to debug
Date: Sat, 16 Jul 2022 18:00:50 +0100	[thread overview]
Message-ID: <20220716180050.55be9701@slackpad.lan> (raw)
In-Reply-To: <20220715052058.28405-2-samuel@sholland.org>

On Fri, 15 Jul 2022 00:20:56 -0500
Samuel Holland <samuel@sholland.org> wrote:

> This just prints the PHY mode taken from the devicetree. It does not
> need to be printed during every boot.

That's true, but I think a more important reason is that it spoils the
output, doesn't it? It reads:
Net:   phy interface9
eth0: ethernet@1c30000
at the moment, but I guess the intention was just:
Net:   eth0: ethernet@1c30000

So given that, and the fact that "interface9" is not really helpful,
that looks alright to me.

> Signed-off-by: Samuel Holland <samuel@sholland.org>

Reviewed-by: Andre Przywara <andre.przywara@arm.com>

Thanks,
Andre
> ---
> 
>  drivers/net/sun8i_emac.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/net/sun8i_emac.c b/drivers/net/sun8i_emac.c
> index 2220f84b6978..a4b3492b7647 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;
>  


  reply	other threads:[~2022-07-16 17:02 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-15  5:20 [PATCH 0/3] net: sun8i-emac: Allwinner D1 Support Samuel Holland
2022-07-15  5:20 ` [PATCH 1/3] net: sun8i-emac: Downgrade printf during probe to debug Samuel Holland
2022-07-16 17:00   ` Andre Przywara [this message]
2022-08-06 17:38     ` Ramon Fried
2022-07-15  5:20 ` [PATCH 2/3] net: sun8i-emac: Drop use of arch-specific header Samuel Holland
2022-07-18 10:03   ` Andre Przywara
2022-08-06 17:39   ` Ramon Fried
2022-07-15  5:20 ` [PATCH 3/3] net: sun8i-emac: Use common syscon setup for R40 Samuel Holland
2022-07-15  9:24   ` Jagan Teki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220716180050.55be9701@slackpad.lan \
    --to=andre.przywara@arm.com \
    --cc=jagan@amarulasolutions.com \
    --cc=joe.hershberger@ni.com \
    --cc=rfried.dev@gmail.com \
    --cc=samuel@sholland.org \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox