Netdev List
 help / color / mirror / Atom feed
From: Alexander 'lynxis' Couzens <lynxis@fe80.eu>
To: netdev@vger.kernel.org
Subject: Handle phys changing the interface between 2500basex & SGMII
Date: Mon, 19 Sep 2022 16:47:13 +0200	[thread overview]
Message-ID: <20220919164713.13bb546e@javelin> (raw)

Hi,

I've a mediatek mt7622 SoC connected to a realtek 2.5gbit copper phy
(rtl8221) via SGMII/2500basex.

The rtl8221 is changing its phy interface depending on the link.
So 2500basex for 2.5gbit copper and for all lower speeds (down to
10mbit) it's using SGMII.

What's the best way to implement it?
Should the phy driver change the phy_interface on link up?

As a hack I've modified mac_link_up to handle the different speeds
and changed the phylink_mac_ops validate to allow advertising lower
speeds on 2500basex.

Best,
lynxis

             reply	other threads:[~2022-09-19 14:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-19 14:47 Alexander 'lynxis' Couzens [this message]
2022-09-19 20:47 ` Handle phys changing the interface between 2500basex & SGMII 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=20220919164713.13bb546e@javelin \
    --to=lynxis@fe80.eu \
    --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