]> Gentwo Git Trees - linux/.git/commit
fbnic: Add SW shim for MDIO interface to PMD and PCS
authorAlexander Duyck <alexanderduyck@fb.com>
Fri, 21 Nov 2025 16:40:45 +0000 (08:40 -0800)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 27 Nov 2025 09:41:31 +0000 (10:41 +0100)
commitd0ce9fd7eae048fbf4004fb4632b878807b18c57
tree88a837e2c12c006157f2a1d013dff5845c11cc2c
parent1fe7978329d736e90600b16b34c7656073dc7a5a
fbnic: Add SW shim for MDIO interface to PMD and PCS

In order for us to support a PCS device we need to add an MDIO bus to allow
the drivers to have access to the registers for the device.  This change
adds such an interface.

The interface will consist of 2 PHY addrs, the first one consisting of a
PMD and PCS, and the second just being a PCS. There is a need for 2 PHYs
addrs due to the fact that in order to support the 50GBase-CR2 mode we will
need to access and configure the PCS vendor registers and RSFEC registers
from the second lane identical to the first.

Signed-off-by: Alexander Duyck <alexanderduyck@fb.com>
Link: https://patch.msgid.link/176374324532.959489.15389723111560978054.stgit@ahduyck-xeon-server.home.arpa
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/meta/fbnic/Makefile
drivers/net/ethernet/meta/fbnic/fbnic.h
drivers/net/ethernet/meta/fbnic/fbnic_mac.h
drivers/net/ethernet/meta/fbnic/fbnic_mdio.c [new file with mode: 0644]
drivers/net/ethernet/meta/fbnic/fbnic_pci.c