From: Andrew Lunn <andrew@lunn.ch>
To: Florian Fainelli <f.fainelli@gmail.com>
Cc: Marek Behun <marek.behun@nic.cz>,
netdev@vger.kernel.org,
Russell King - ARM Linux <linux@armlinux.org.uk>
Subject: Re: Is it currently possible to connect SFP to dsa port?
Date: Tue, 7 Aug 2018 22:03:22 +0200 [thread overview]
Message-ID: <20180807200322.GB7275@lunn.ch> (raw)
In-Reply-To: <2d62b88b-3a92-d026-effe-defcb9d5838b@gmail.com>
On Tue, Aug 07, 2018 at 12:43:11PM -0700, Florian Fainelli wrote:
>
>
> On 08/07/2018 12:00 PM, Marek Behun wrote:
> > Hello,
> >
> > I have a question regarding DSA/SFP code.
> >
> > We are working on a modular router where it is possible to connect
> > multiple switch cards and at most one SFP cage card to a router.
> >
> > Does the sfp/dsa driver support connecting SFP port to a DSA port? For
> > example the Marvell 6390 switch has two SGMII ports and 8 1Gbps PHYs.
> > One can then connect those 8 1Gbps PHYs to RJ-45 connectors, the first
> > SGMII port to the CPU and the second SGMII port to SFP.
> >
> > I think this is currently not possible, but am not sure.
>
> DSA recently gained support for PHYLINK which would allow you to do
> that, please make sure your tree has this commit at least:
>
> aab9c4067d2389d0adfc9c53806437df7b0fe3d5 ("net: dsa: Plug in PHYLINK
> support").
Hi Florian
That gives enough to not break existing setups using the mv88e6xxx
driver. But to really use PHYLINK, more code is needed. I've taken
some of Russell Kings work, and merged that in, which gives us proper
support for validate, config_mac, etc. But Russell's code is missing
calls to phylink_mac_change, and handling SERDES interfaces, which are
needed for SFPs. I've got some code which is near, but it broke D in
DSA on my board :-(
Andrew
next prev parent reply other threads:[~2018-08-07 22:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-07 19:00 Is it currently possible to connect SFP to dsa port? Marek Behun
2018-08-07 19:43 ` Florian Fainelli
2018-08-07 20:03 ` Andrew Lunn [this message]
2018-08-07 19:58 ` Andrew Lunn
2018-08-08 13:00 ` Marek Behún
2018-08-08 13:29 ` Russell King - ARM Linux
2018-08-08 13:52 ` Andrew Lunn
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=20180807200322.GB7275@lunn.ch \
--to=andrew@lunn.ch \
--cc=f.fainelli@gmail.com \
--cc=linux@armlinux.org.uk \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.