netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/6] net: phy: dp83869: Add support for downstream SFP cages
@ 2024-07-01  8:51 Romain Gantois
  2024-07-01  8:51 ` [PATCH net-next 1/6] net: phy: dp83869: Disable autonegotiation in RGMII/1000Base-X mode Romain Gantois
                   ` (5 more replies)
  0 siblings, 6 replies; 26+ messages in thread
From: Romain Gantois @ 2024-07-01  8:51 UTC (permalink / raw)
  To: Andrew Lunn, Heiner Kallweit, Russell King, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni
  Cc: Thomas Petazzoni, netdev, linux-kernel, Romain Gantois

Hello everyone,

This is version one of my series that adds support for downstream SFP cages
to the DP83869 PHY driver.

The DP83869HM PHY transceiver supports a variety of different conversion
modes, including RGMII to SGMII and RGMII to 1000Base-X. With these last
two modes, the DP83869 can act as a bridge between an Ethernet MAC and an SFP
cage in one of the following two configurations:

RGMII-SGMII bridge:

+-------+       +------------+        +-----------+--------------------+
|       |RGMII  |            | SGMII  |                                |
|  MAC  |<----->| DP83869HM  |<------>| SFP cage with SGMII SFP module |
|       |       |            |        |                                |
+-------+       +------------+        +-----------+--------------------+

RGMII-1000Base-X converter:

+-------+        +------------+1000Base-X+-----------+--------------------+
|       |RGMII   |            |          |                                |
|  MAC  |<------>| DP83869HM  |<-------->| SFP cage with DAC/fiber module |
|       |        |            |          |                                |
+-------+        +------------+          +-----------+--------------------+

The RGMII-SGMII and RGMII-1000Base-X are currently supported in the PHY
driver, but there are some flaws that prevent proper operation with
downstream SFP modules. Additionally, the sfp_upstream_ops callbacks which
are needed to interact with the downstream SFP modules are not yet
implemented.

This series adds full support for both SGMII and DAC SFP modules by
implementing these sfp_upstream_ops callbacks and fixing relevant issues in
the existing DP83869 operational modes.

Best Regards,

Romain

Signed-off-by: Romain Gantois <romain.gantois@bootlin.com>
---
Romain Gantois (6):
      net: phy: dp83869: Disable autonegotiation in RGMII/1000Base-X mode
      net: phy: dp83869: Perform software restart after configuring op mode
      net: phy: dp83869: Ensure that the FORCE_LINK_GOOD bit is cleared
      net: phy: dp83869: Support 1000Base-X and 100Base-FX SFP modules
      net: phy: dp83869: Support SGMII SFP modules
      net: phy: dp83869: Fix link up reporting in SGMII bridge mode

 drivers/net/phy/dp83869.c | 269 +++++++++++++++++++++++++++++++++++++++-------
 1 file changed, 233 insertions(+), 36 deletions(-)
---
base-commit: 30972a4ea092bacb9784fe251327571be6a99f9c
change-id: 20240628-b4-dp83869-sfp-8ea96b3f438c

Best regards,
-- 
Romain Gantois <romain.gantois@bootlin.com>


^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2024-07-02 19:55 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-01  8:51 [PATCH net-next 0/6] net: phy: dp83869: Add support for downstream SFP cages Romain Gantois
2024-07-01  8:51 ` [PATCH net-next 1/6] net: phy: dp83869: Disable autonegotiation in RGMII/1000Base-X mode Romain Gantois
2024-07-01 16:40   ` Andrew Lunn
2024-07-02  8:44     ` Romain Gantois
2024-07-02  9:24       ` Russell King (Oracle)
2024-07-02  9:42         ` Romain Gantois
2024-07-02 10:15           ` Russell King (Oracle)
2024-07-02 13:01             ` Romain Gantois
2024-07-01  8:51 ` [PATCH net-next 2/6] net: phy: dp83869: Perform software restart after configuring op mode Romain Gantois
2024-07-01 16:44   ` Andrew Lunn
2024-07-02  8:45     ` Romain Gantois
2024-07-01  8:51 ` [PATCH net-next 3/6] net: phy: dp83869: Ensure that the FORCE_LINK_GOOD bit is cleared Romain Gantois
2024-07-01  8:51 ` [PATCH net-next 4/6] net: phy: dp83869: Support 1000Base-X and 100Base-FX SFP modules Romain Gantois
2024-07-01 16:49   ` Andrew Lunn
2024-07-01  8:51 ` [PATCH net-next 5/6] net: phy: dp83869: Support SGMII " Romain Gantois
2024-07-01 17:00   ` Andrew Lunn
2024-07-02  8:11     ` Romain Gantois
2024-07-02 13:21       ` Andrew Lunn
2024-07-02 14:56         ` Maxime Chevallier
2024-07-02 18:13           ` Russell King (Oracle)
2024-07-02 19:55             ` Andrew Lunn
2024-07-02 15:18         ` Russell King (Oracle)
2024-07-01  8:51 ` [PATCH net-next 6/6] net: phy: dp83869: Fix link up reporting in SGMII bridge mode Romain Gantois
2024-07-01 17:09   ` Andrew Lunn
2024-07-02  9:04     ` Romain Gantois
2024-07-02  9:28       ` Russell King (Oracle)

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).