]> www.infradead.org Git - users/hch/configfs.git/commit
net: stmmac: Add DW XPCS specified via "pcs-handle" support
authorSerge Semin <fancer.lancer@gmail.com>
Mon, 1 Jul 2024 18:28:41 +0000 (21:28 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Jul 2024 08:35:51 +0000 (09:35 +0100)
commit357768c7e79242995f71ff51d2bc49623be8fb7d
treec5ff6862e68ba8b8d964e8cdd9af272d83b4ac8e
parent351066bad6ade5ad0f5f90fde2dc759759959969
net: stmmac: Add DW XPCS specified via "pcs-handle" support

Recently the DW XPCS DT-bindings have been introduced and the DW XPCS
driver has been altered to support the DW XPCS registered as a platform
device. In order to have the DW XPCS DT-device accessed from the STMMAC
driver let's alter the STMMAC PCS-setup procedure to support the
"pcs-handle" property containing the phandle reference to the DW XPCS
device DT-node. The respective fwnode will be then passed to the
xpcs_create_fwnode() function which in its turn will create the DW XPCS
descriptor utilized in the main driver for the PCS-related setups.

Signed-off-by: Serge Semin <fancer.lancer@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c