]> git.itanic.dy.fi Git - linux-stable/commit
net: enetc: allow phy-mode = "1000base-x"
authorVladimir Oltean <vladimir.oltean@nxp.com>
Wed, 3 Jan 2024 11:34:45 +0000 (13:34 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 5 Jan 2024 00:56:54 +0000 (16:56 -0800)
commit14d0681b3ae2cb5c3f2fe4ca2d0b9c517f225e48
treeb322cc7e8a047f57a33215a36465ee004920fde6
parentfe1eb24bd5ade085914248c527044e942f75e06a
net: enetc: allow phy-mode = "1000base-x"

The driver code proper is handled by the lynx_pcs. The enetc just needs
to populate phylink's supported_interfaces array, and return true for
this phy-mode in enetc_port_has_pcs(), such that it creates an internal
MDIO bus through which the Lynx PCS registers are accessed.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://lore.kernel.org/r/20240103113445.3892971-1-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/enetc/enetc_pf.c