]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
phy: lynx-28g: move lane mode helpers to new core module
authorVladimir Oltean <vladimir.oltean@nxp.com>
Wed, 10 Jun 2026 15:19:39 +0000 (18:19 +0300)
committerVinod Koul <vkoul@kernel.org>
Thu, 11 Jun 2026 07:09:46 +0000 (12:39 +0530)
commitac0ffe7cf1221182f4068d8aaf825b01655c7ca9
tree34a1babbd79b5c8fde96e663dbefe142204d9272
parenta45f9dac20b6757487502109feac0298ec78f3bd
phy: lynx-28g: move lane mode helpers to new core module

Do some preparation work for the introduction of the lynx-10g driver,
which will share a common backbone with the 28G Lynx SerDes.

This is just trivial stuff which can be moved without any surgery, and
is easy to follow but otherwise pollutes more serious changes.

The lane modes themselves are exported to a public header, because on
the 10G Lynx, the hardware requires implementing a procedure called
"RCW override". This requires coordination with drivers/soc/fsl/guts.c
to tell it that a SerDes lane needs to be switched to a different
protocol (enum lynx_lane_mode).

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://patch.msgid.link/20260610151952.2141019-4-vladimir.oltean@nxp.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/freescale/Kconfig
drivers/phy/freescale/Makefile
drivers/phy/freescale/phy-fsl-lynx-28g.c
drivers/phy/freescale/phy-fsl-lynx-core.c [new file with mode: 0644]
drivers/phy/freescale/phy-fsl-lynx-core.h [new file with mode: 0644]
include/soc/fsl/phy-fsl-lynx.h [new file with mode: 0644]