From: Lorenz Brun <lorenz@brun.one>
To: Russell King <linux@armlinux.org.uk>
Cc: Andrew Lunn <andrew@lunn.ch>, netdev@vger.kernel.org
Subject: Re: Quirks for exotic SFP module
Date: Sat, 06 May 2023 16:04:31 +0200 [thread overview]
Message-ID: <JRP8UR.4LGGLMICAZ5S@brun.one> (raw)
In-Reply-To: <ZFZcL8LKkX3+GKMT@shell.armlinux.org.uk>
Am Sa, 6. Mai 2023 um 14:54:55 +01:00:00 schrieb Russell King (Oracle)
<linux@armlinux.org.uk>:
> It's not backwards at all. For a fibre link, 1000baseX is carried over
> the fibre, and it looks like this:
>
> Host MAC <==> Host PCS <==1000baseX==> Remote PCS <==> Remote MAC
>
> The host has no access to the remote PCS.
>
> In your case:
>
> Host MAC <==> Host PCS <==1000baseX==> AR8033 <==RGMII==> SoC
>
> How is this any different? I would say the AR8033 is up to the SoC to
> manage itself. The fact that the SoC does something with the packets
> to them stuff them out to the rest of the world is neither here nor
> there. In the 1000base-X over fibre example above, the SoC could be
> something designed for routing applications inside a network switch/
> router.
>
> Please don't get hung up on "there is a PHY on the module, I want
> access to it!" As you're not talking twisted-pair ethernet, you
> don't, there is nothing we need to control there.
That was my initial thought as well, Andrew told me to look for some
interface to talk with a PHY.
>
> The fact the module wants 1000base-X on its host interface is just
> what it wants - and that it specifies that it offers 1000base-T
> compliance is just the manufacturer being idiotic (as seems to be
> the case with a lot of SFPs.)
>
> Just add a quirk removing the 1000base-T capability, setting
> 1000base-X in the supported mask, and also clear the
> PHY_INTERFACE_MODE_SGMII and set PHY_INTERFACE_MODE_1000BASEX in
> the interfaces mask.
Sounds good, I'll do that. Thanks for your help!
Regards,
Lorenz
next prev parent reply other threads:[~2023-05-06 14:04 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-05 17:39 Quirks for exotic SFP module Lorenz Brun
2023-05-05 18:53 ` Andrew Lunn
2023-05-05 21:30 ` Lorenz Brun
2023-05-06 0:03 ` Andrew Lunn
2023-05-06 0:26 ` Lorenz Brun
2023-05-06 1:05 ` Andrew Lunn
2023-05-06 1:15 ` Lorenz Brun
2023-05-06 13:35 ` Andrew Lunn
2023-05-06 13:54 ` Russell King (Oracle)
2023-05-06 14:04 ` Lorenz Brun [this message]
2023-05-06 10:02 ` Russell King (Oracle)
2023-05-06 10:01 ` Russell King (Oracle)
2023-05-06 9:57 ` Russell King (Oracle)
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=JRP8UR.4LGGLMICAZ5S@brun.one \
--to=lorenz@brun.one \
--cc=andrew@lunn.ch \
--cc=linux@armlinux.org.uk \
--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.