From: Florian Fainelli <f.fainelli@gmail.com>
To: Michael Grzeschik <mgr@pengutronix.de>, davem@davemloft.net
Cc: netdev@vger.kernel.org, kernel@pengutronix.de
Subject: Re: TJA1100 100Base-T1 PHY features via ethtool?
Date: Mon, 13 Aug 2018 12:53:35 -0700 [thread overview]
Message-ID: <d7ce5ce0-665e-2b27-72e3-24656999b7c7@gmail.com> (raw)
In-Reply-To: <20180813193509.v6qlt2vsez6kyhag@pengutronix.de>
On 08/13/2018 12:35 PM, Michael Grzeschik wrote:
> Hi David,
>
> I use a special 100Base-T1 phy (NXP TJA1100 [1]) that has some features
> like:
>
> - enabling/disabling test modes
> - fault detection
> - switching managed/autonomous mode
> - signal quality indication
> - ...
>
> I already implemented the support of the features with the
> ethtool --get/set-phy-tunables features by adding ethtool_phy_tunables:
>
> ETHTOOL_PHY_TEST_MODE
> ETHTOOL_PHY_FAULT_DETECTION
> ETHTOOL_PHY_MANAGED_MODE
> ETHTOOL_PHY_SIGNAL_QUALITY
>
> Before posting my series I wanted to ensure that this is the preferred
> interface for those options.
The tunable interface is there, but is very limited. A few months ago, I
had started proposing an interface to support PHY test modes [1] (the
standard IEEE 802.3 defined ones) but a lot of it should now be migrated
to the work that Michal is doing on the conversion of ethtool to netlink
[2].
[1]: https://lkml.org/lkml/2018/4/27/1172
[2]: https://www.spinics.net/lists/netdev/msg516233.html
>
> I found a series from 2016 [2] that implements the userspace part for
> the loopback feature of some phys, that did not get mainline so far
> which makes me wonder if ethtool is still the way to go.
ethtool is being converted to netlink, and that will be a much more
flexible interface to work with since it is basically easily extensible
(unlike the current ethtool + ioctl approach).
Back when the patches were proposed, we just had mild disagreement on
the loopback terminology being used, and then nothing happened.
>
> [1] https://www.nxp.com/docs/en/data-sheet/TJA1100.pdf
> [2] https://www.spinics.net/lists/netdev/msg406614.html
>
> Thanks,
> Michael
>
--
Florian
next prev parent reply other threads:[~2018-08-13 22:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-13 19:35 TJA1100 100Base-T1 PHY features via ethtool? Michael Grzeschik
2018-08-13 19:53 ` Florian Fainelli [this message]
2018-08-14 7:13 ` Michael Grzeschik
2018-08-16 15:58 ` Woojung.Huh
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=d7ce5ce0-665e-2b27-72e3-24656999b7c7@gmail.com \
--to=f.fainelli@gmail.com \
--cc=davem@davemloft.net \
--cc=kernel@pengutronix.de \
--cc=mgr@pengutronix.de \
--cc=netdev@vger.kernel.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