From: Zefir Kurtisi <zefir.kurtisi@neratec.com>
To: Marc Bertola <marc.bertola@prolucid.ca>, netdev@vger.kernel.org
Cc: Florian Fainelli <f.fainelli@gmail.com>,
Timur Tabi <timur@codeaurora.org>
Subject: Re: Correct method for initializing Pause and Asymmetrical Pause support in phy drivers
Date: Thu, 12 Jan 2017 16:52:38 +0100 [thread overview]
Message-ID: <68c58b10-1458-636e-a4a6-686a17ba743b@neratec.com> (raw)
In-Reply-To: <CAMqDo0XxvtjD+uJQeHJuSyN71zEEa5AB9YE1CUYK8wq2NGeAbQ@mail.gmail.com>
On 01/12/2017 04:21 PM, Marc Bertola wrote:
> Hello netdev list,
>
> I am currently investigating a problem related to Ethernet
> auto-negotiation of Pause and Asymmetrical Pause capabilities.
>
> TL;DR: I am using a Picozed system-on-module with a Xilinx Gigabit
> Ethernet MAC and a Marvell PHY. It does not appear to be advertising
> support for Pause and Asym Pause, which seems strange to me given that
> this is relatively recent hardware. I suspect that may be due to a
> problem in the way phydev->supported is initialized in
> drivers/net/phy/marvell.c.
>
> I am trying to confirm what the proper method is to initialize
> phydev->supported such that it advertises SUPPORTED_Pause and
> SUPPORTED_Asym_Pause. Adding these flags to (phy_driver).features
> seems to work, but I would like to confirm with people who are more
> knowledgeable than me in this regard.
> [...]
This was discussed only recently and iirc consensus was:
* flow control is an ETH property, PHY is only forwarding the info
* => therefore (Asym)Pause flags are to be set by ETH driver, not by PHY
For reference, Timur Tabi cleaned up the PHY drivers around two months ago in [1].
Cheers,
Zefir
[1] https://www.spinics.net/lists/netdev/msg403806.html
next prev parent reply other threads:[~2017-01-12 15:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-12 15:21 Correct method for initializing Pause and Asymmetrical Pause support in phy drivers Marc Bertola
2017-01-12 15:35 ` Andrew Lunn
2017-01-12 15:52 ` Zefir Kurtisi [this message]
2017-01-12 16:52 ` Marc Bertola
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=68c58b10-1458-636e-a4a6-686a17ba743b@neratec.com \
--to=zefir.kurtisi@neratec.com \
--cc=f.fainelli@gmail.com \
--cc=marc.bertola@prolucid.ca \
--cc=netdev@vger.kernel.org \
--cc=timur@codeaurora.org \
/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