]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: fec: add more macros for bits of FEC_ECR
authorWei Fang <wei.fang@nxp.com>
Fri, 11 Jul 2025 09:16:38 +0000 (17:16 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Jul 2025 00:14:31 +0000 (17:14 -0700)
commit2d33dc6058157d91c5b76b7380bbc27d72595d2c
treec31f53ea9cd4d49270e4897d0970cf475c7994a4
parent893bb0beed4d1cc51343346981f53f727dc01cb3
net: fec: add more macros for bits of FEC_ECR

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@nxp.com>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Link: https://patch.msgid.link/20250711091639.1374411-3-wei.fang@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/fec_main.c