From: Timur Tabi <timur@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/2] [v3] net: abort network initialization if the PHY driver fails
Date: Tue, 10 Jul 2012 13:35:11 -0500 [thread overview]
Message-ID: <4FFC75DF.80100@freescale.com> (raw)
In-Reply-To: <CANr=Z=ZneVQMZwBGwmU04wOnvc7MFi88MYK329ZrgoZqVFoHng@mail.gmail.com>
Joe Hershberger wrote:
>>>> @@ -384,7 +387,11 @@ static int fm_eth_open(struct eth_device *dev, bd_t *bd)
>>>> fmc_tx_port_graceful_stop_disable(fm_eth);
>>>>
>>>> #ifdef CONFIG_PHYLIB
>>>> - phy_startup(fm_eth->phydev);
>>>> + ret = phy_startup(fm_eth->phydev);
>>>> + if (ret) {
>>>> + printf("%s: Could not initialize\n", fm_eth->phydev->dev->name);
>>>
>>> Why is this string different from the others? Consistency?
>>
>> Yes. I tried to keep the messages consistent with the other messages in
>> the function.
>
> Should you not at least keep the core message the same? "Could not
> initialize PHY"
Well, I suppose I could add the word "PHY" here.
>>>> diff --git a/drivers/net/sh_eth.c b/drivers/net/sh_eth.c
>>>> index bb57e4d..268d884 100644
>>>> --- a/drivers/net/sh_eth.c
>>>> +++ b/drivers/net/sh_eth.c
>>>> @@ -415,7 +415,11 @@ static int sh_eth_config(struct sh_eth_dev *eth, bd_t *bd)
>>>> goto err_phy_cfg;
>>>> }
>>>> phy = port_info->phydev;
>>>> - phy_startup(phy);
>>>> + ret = phy_startup(phy);
>>>> + if (ret) {
>>>> + printf(SHETHER_NAME ": phy startup failure\n");
>>>
>>> Why is this string different from the others? Consistency?
>>
>> Yes, it looks like the other messages in sh_eth_config().
>
> Same here, at least the core message "Could not initialize PHY"
I am saying that, just in a different way. "phy startup failure" means
the same as "Could not initialize PHY", but the wording matches the rest
of the function.
--
Timur Tabi
Linux kernel developer at Freescale
next prev parent reply other threads:[~2012-07-10 18:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-09 18:52 [U-Boot] [PATCH 2/2] [v3] net: abort network initialization if the PHY driver fails Timur Tabi
2012-07-10 1:54 ` Marek Vasut
2012-07-10 15:54 ` Joe Hershberger
2012-07-10 16:15 ` Timur Tabi
2012-07-10 18:30 ` Joe Hershberger
2012-07-10 18:35 ` Timur Tabi [this message]
2012-07-10 18:36 ` Joe Hershberger
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=4FFC75DF.80100@freescale.com \
--to=timur@freescale.com \
--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