From: Mason <slash.tmp@free.fr>
To: Florian Fainelli <f.fainelli@gmail.com>
Cc: Marc Gonzalez <marc_gonzalez@sigmadesigns.com>,
David Daney <ddaney.cavm@gmail.com>,
netdev <netdev@vger.kernel.org>,
Geert Uytterhoeven <geert+renesas@glider.be>,
David Miller <davem@davemloft.net>, Andrew Lunn <andrew@lunn.ch>,
Mans Rullgard <mans@mansr.com>,
Thibaud Cornic <thibaud_cornic@sigmadesigns.com>
Subject: Re: [PATCH net] Revert "net: phy: Correctly process PHY_HALTED in phy_stop_machine()"
Date: Wed, 6 Sep 2017 16:55:20 +0200 [thread overview]
Message-ID: <927413e9-4f1f-963c-2d3a-5a88de2eac9e@free.fr> (raw)
In-Reply-To: <7b1c1dc9-b6e3-a1bd-2e36-474946741a79@gmail.com>
On 31/08/2017 21:18, Florian Fainelli wrote:
> On 08/31/2017 12:09 PM, Mason wrote:
>
>> 1) nb8800_link_reconfigure() calls phy_print_status()
>> which prints the "Link down" and "Link up" messages
>> to the console. With the patch reverted, nothing is
>> printed when the link goes down, and the result is
>> random when the link comes up. Sometimes, we get
>> down + up, sometimes just up.
>
> Nothing printed when you bring down the network interface as a result of
> not signaling the link down, there is a small nuance here.
Let me first focus on the "Link down" message.
Do you agree that such a message should be printed when the
link goes down, not when the link comes up?
Perhaps the issue is that the 2 following cases need to be
handled differently:
A) operator sets link down on the command-line
B) asynchronous event makes link go down (peer is dead, cable is cut, etc)
In B) the PHY state machine keeps on running, and eventually
calls adjust_link()
In A) the driver calls phy_stop() and phy_disconnect() and
therefore adjust_link() will not be called?
Regards.
next prev parent reply other threads:[~2017-09-06 14:55 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-31 0:49 [PATCH net] Revert "net: phy: Correctly process PHY_HALTED in phy_stop_machine()" Florian Fainelli
2017-08-31 1:47 ` David Miller
2017-08-31 12:29 ` Marc Gonzalez
2017-08-31 14:21 ` Marc Gonzalez
2017-08-31 16:36 ` David Daney
2017-08-31 16:57 ` Florian Fainelli
2017-08-31 17:49 ` Mason
2017-08-31 17:53 ` Florian Fainelli
2017-08-31 18:12 ` Mason
2017-08-31 18:29 ` Florian Fainelli
2017-09-06 14:33 ` Mason
2017-09-06 17:53 ` David Daney
2017-09-06 18:00 ` David Daney
2017-09-06 18:59 ` Florian Fainelli
2017-09-06 20:49 ` David Daney
2017-09-06 22:51 ` David Daney
2017-09-06 23:14 ` Florian Fainelli
2017-09-07 0:10 ` David Daney
2017-09-07 1:41 ` Florian Fainelli
2017-09-06 19:14 ` Mason
2017-08-31 17:35 ` Mason
2017-08-31 17:03 ` Florian Fainelli
2017-08-31 19:09 ` Mason
2017-08-31 19:18 ` Florian Fainelli
2017-09-06 14:55 ` Mason [this message]
2017-09-06 19:28 ` Florian Fainelli
2017-09-06 15:51 ` Mason
2017-09-06 19:42 ` Florian Fainelli
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=927413e9-4f1f-963c-2d3a-5a88de2eac9e@free.fr \
--to=slash.tmp@free.fr \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=ddaney.cavm@gmail.com \
--cc=f.fainelli@gmail.com \
--cc=geert+renesas@glider.be \
--cc=mans@mansr.com \
--cc=marc_gonzalez@sigmadesigns.com \
--cc=netdev@vger.kernel.org \
--cc=thibaud_cornic@sigmadesigns.com \
/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;
as well as URLs for NNTP newsgroup(s).