From: Russell King - ARM Linux admin <linux@armlinux.org.uk>
To: Denis Kirjanov <kda@linux-powerpc.org>
Cc: "Marek Behún" <marek.behun@nic.cz>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: Re: [PATCH net-next] net: sfp: add some quirks for FreeTel direct attach modules
Date: Fri, 8 May 2020 16:02:27 +0100 [thread overview]
Message-ID: <20200508150227.GU1551@shell.armlinux.org.uk> (raw)
In-Reply-To: <CAOJe8K03_BFvfMHOUibi6OZLt28Z8Cn1katyhvJHP5b1rFZbUw@mail.gmail.com>
On Fri, May 08, 2020 at 05:30:06PM +0300, Denis Kirjanov wrote:
> On Thursday, May 7, 2020, Marek Behún <marek.behun@nic.cz> wrote:
>
> > FreeTel P.C30.2 and P.C30.3 may fail to report anything useful from
> > their EEPROM. They report correct nominal bitrate of 10300 MBd, but do
> > not report sfp_ct_passive nor sfp_ct_active in their ERPROM.
> >
> > These modules can also operate at 1000baseX and 2500baseX.
> >
> > Signed-off-by: Marek Behún <marek.behun@nic.cz>
> > Cc: Russell King <rmk+kernel@armlinux.org.uk>
> > ---
> > drivers/net/phy/sfp-bus.c | 20 ++++++++++++++++++++
> > 1 file changed, 20 insertions(+)
> >
> > diff --git a/drivers/net/phy/sfp-bus.c b/drivers/net/phy/sfp-bus.c
> > index 6900c68260e0..f021709bedcc 100644
> > --- a/drivers/net/phy/sfp-bus.c
> > +++ b/drivers/net/phy/sfp-bus.c
> > @@ -44,6 +44,14 @@ static void sfp_quirk_2500basex(const struct
> > sfp_eeprom_id *id,
> > phylink_set(modes, 2500baseX_Full);
> > }
> >
> > +static void sfp_quirk_direct_attach_10g(const struct sfp_eeprom_id *id,
> > + unsigned long *modes)
> > +{
> > + phylink_set(modes, 10000baseCR_Full);
> > + phylink_set(modes, 2500baseX_Full);
> > + phylink_set(modes, 1000baseX_Full);
> > +}
> > +
> > static const struct sfp_quirk sfp_quirks[] = {
> > {
> > // Alcatel Lucent G-010S-P can operate at 2500base-X, but
> > @@ -63,6 +71,18 @@ static const struct sfp_quirk sfp_quirks[] = {
> > .vendor = "HUAWEI",
> > .part = "MA5671A",
> > .modes = sfp_quirk_2500basex,
> > + }, {
> > + // FreeTel P.C30.2 is a SFP+ direct attach that can
> > operate at
> > + // at 1000baseX, 2500baseX and 10000baseCR, but may report
> > none
> > + // of these in their EEPROM
>
>
> Hi Marek,
>
> The comment style above is not what Linux kernel uses
The comment style is per file - keeping consistency within a file is
far more important than rigid conformance to some coding style. That
is, unless someone is prepared to convert said file. The commenting
style for these entries is to use "//" style.
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line in suburbia: sync at 10.2Mbps down 587kbps up
next prev parent reply other threads:[~2020-05-08 15:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-07 13:21 [PATCH net-next] net: sfp: add some quirks for FreeTel direct attach modules Marek Behún
[not found] ` <CAOJe8K03_BFvfMHOUibi6OZLt28Z8Cn1katyhvJHP5b1rFZbUw@mail.gmail.com>
2020-05-08 15:02 ` Russell King - ARM Linux admin [this message]
2020-05-08 15:28 ` Russell King - ARM Linux admin
2020-05-08 16:27 ` Marek Behun
2020-05-08 18:00 ` Russell King - ARM Linux admin
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=20200508150227.GU1551@shell.armlinux.org.uk \
--to=linux@armlinux.org.uk \
--cc=kda@linux-powerpc.org \
--cc=marek.behun@nic.cz \
--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;
as well as URLs for NNTP newsgroup(s).