Re: [PATCH net-next 2/3] net: fec: add more macros for bits of FEC_ECR
From: Maxime Chevallier
Date: Thu Jul 10 2025 - 10:17:16 EST
On Thu, 10 Jul 2025 17:09:01 +0800
Wei Fang <wei.fang@xxxxxxx> wrote:
> There are also some RCR bits that are not defined but are used by the
> driver, so add macro definitions for these bits to improve readability
> and maintainability.
>
> In addition, although FEC_RCR_HALFDPX has been defined, it is not used
> in the driver. According to the description of FEC_RCR[1] in RM, it is
> used to disable receive on transmit. Therefore, it is more appropriate
> to redefine FEC_RCR[1] as FEC_RCR_DRT.
>
> Signed-off-by: Wei Fang <wei.fang@xxxxxxx>
Reviewed-by: Maxime Chevallier <maxime.chevallier@xxxxxxxxxxx>
Maxime