Re: [PATCH net-next v2 1/2] net: pcs: xpcs: enable skip xPCS soft reset

From: Andrew Lunn
Date: Thu Aug 26 2021 - 21:58:56 EST


On Fri, Aug 27, 2021 at 07:51:33AM +0800, Wong Vee Khee wrote:
> Unlike any other platforms, Intel AlderLake-S uses Synopsys SerDes where
> all the SerDes PLL configurations are controlled by the xPCS at the BIOS
> level. If the driver perform a xPCS soft reset on initialization, these
> settings will be switched back to the power on reset values.
>
> This patch introduced a new xpcs_reset() function for drivers such as
> sja1105 and stmmac to decide whether or not to perform a xPCS soft
> reset.
>
> + /* If Device ID are all ones, there is no device found */
> + if (xpcs_id == 0xffffffff)
> + goto out;
> +

This does not look like plain refactoring. It is not code moved from
somewhere else. At minimum, it needs explaining in the commit message,
but it probably should be a commit of its own.

Andrew