[PATCH v5 phy-next 07/16] phy: lynx-28g: provide default lynx_lane_supports_mode() implementation

Ioana Ciornei ioana.ciornei at nxp.com
Thu Jun 11 04:02:20 PDT 2026


On Wed, Jun 10, 2026 at 06:19:43PM +0300, Vladimir Oltean wrote:
> For the 28G Lynx, there are situations where a protocol is not supported
> on a lane despite there being a PCCR register and protocol converter
> available:
> - LX2160A SerDes 1: reference manual documents PCCD fields E25GC_CFG and
>   E25GD_CFG and protocol converter registers E25GCCR1..E25GCCR3 /
>   E25GDCR1..E25GDCR3, but nonetheless, Table 289. SerDes 1 protocol
>   mapping shows no RCW[SRDS_PRTCL_S1] value for which lanes C and D
>   support 25G
> - when using the "fsl,lynx-28g" fallback compatible string, we don't
>   want to offer 25GbE because we don't know if the lane supports it,
>   even though we know how to reach the PCCR and protocol converter
>   registers for it.
> 
> But for the upcoming 10G Lynx SerDes, the above situations don't exist.
> There, if we know how to reach the PCCR and protocol converter
> registers on a lane, we implicitly know that the protocol is supported
> there, so implementing priv->info->lane_supports_mode() would be
> redundant.
> 
> Implement lynx_lane_supports_mode_default() which decides whether a lane
> mode is supported just based on priv->info->get_pccr() and
> priv->info->get_pcvt_offset().
> 
> Signed-off-by: Vladimir Oltean <vladimir.oltean at nxp.com>

Reviewed-by: Ioana Ciornei <ioana.ciornei at nxp.com>




More information about the linux-phy mailing list