Re: [PATCH net-next 15/30] net: dsa: mt7530: set TRGMII RD TAP if trgmii is being used

From: Vladimir Oltean
Date: Fri May 26 2023 - 09:09:35 EST

On Mon, May 22, 2023 at 03:15:17PM +0300, arinc9.unal@xxxxxxxxx wrote:
> From: Arınç ÜNAL <arinc.unal@xxxxxxxxxx>
> This code sets the Read Data (RD) TAP value to 16 for all TRGMII control
> registers.
> The for loop iterates over all the TRGMII control registers, and
> mt7530_rmw() function is used to perform a read-modify-write operation on
> each register's RD_TAP field to set its value to 16.
> This operation is used to tune the timing of the read data signal in
> TRGMII to match the TX signal of the link partner.
> Run this if trgmii is being used. Since this code doesn't lower the
> driving, there's no apparent benefit to run this if trgmii is not being
> used.
> Add a comment to explain the code.
> Thanks to 趙皎宏 (Landen Chao) for pointing out what the code does.
> Tested-by: Arınç ÜNAL <arinc.unal@xxxxxxxxxx>
> Signed-off-by: Arınç ÜNAL <arinc.unal@xxxxxxxxxx>
> ---

Reviewed-by: Vladimir Oltean <olteanv@xxxxxxxxx>