Re: [PATCH v4 phy-next 8/9] soc: fsl: guts: implement the RCW override procedure

Ioana Ciornei <[email protected]>
Newsgroups gmane.linux.ports.ppc.embedded
Message-ID <xumth3wb3bvui6ywrithgazf6fombn42hisikprtywkbuexypn__26724.4566626445$1784718117$gmane$org@kugdqyce226c>
On Wed, Jul 22, 2026 at 02:16:02AM +0300, Vladimir Oltean wrote:
> Add support for the RCW override procedure which enables runtime
> reconfiguration of the protocol running on a SerDes lane. The procedure
> is done through the DCFG DCSR space which now can be defined as the
> second memory region of the guts DT node.
> Support is added on the following SoCs: LS1046A, LS1088A, LS2088A.
> 
> The procedure is exported to the "client" driver - the Lynx10G SerDes
> PHY driver - through the following functions:
> - fsl_guts_lane_validate() used to validate that changing the protocol
>   on a specific lane is supported.
> - fsl_guts_lane_set_mode() which can be used to request the RCW
>   procedure be executed for a specific lane.
> 
> Since the RCW override procedure is different depending on the SoC, the
> private fsl_soc_data structure is updated with two new per SoC callbacks
> (.serdes_get_rcw_override() and .serdes_init_rcwcr()) which get used
> from the generic fsl_guts_lane_set_mode() function. These two callbacks
> hide all the SoC specific register offsets, masks and values so that the
> _set_mode() procedure is straightforward.
> 
> Signed-off-by: Ioana Ciornei <[email protected]>
> Signed-off-by: Vladimir Oltean <[email protected]>

Reviewed-by: Ioana Ciornei <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.