1 From 6d7e10038aba81d7273f72f36db64c71ae7f8f69 Mon Sep 17 00:00:00 2001
2 From: Nagesh Koneti <koneti.nagesh@nxp.com>
3 Date: Wed, 25 Sep 2019 12:01:19 +0530
4 Subject: [PATCH] staging: fsl_ppfe/eth: Disable termination of CRC fwd.
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 LS1012A MAC PCS block has an erratum that is seen with specific PHY AR803x.
10 The issue is triggered by the (spec-compliant) operation of the AR803x PHY
11 on the LS1012A-FRWY board.Due to this, good FCS packet is reported as error
12 packet by MAC, so for these error packets FCS should be validated and
13 discard only real error packets in PFE Rx packet path.
15 Signed-off-by: Nagesh Koneti <koneti.nagesh@nxp.com>
16 Signed-off-by: Nagesh Koneti <“koneti.nagesh@nxp.com”>
18 drivers/staging/fsl_ppfe/pfe_hal.c | 5 +++--
19 1 file changed, 3 insertions(+), 2 deletions(-)
21 --- a/drivers/staging/fsl_ppfe/pfe_hal.c
22 +++ b/drivers/staging/fsl_ppfe/pfe_hal.c
23 @@ -860,8 +860,9 @@ void gemac_set_mode(void *base, int mode
25 val &= ~EMAC_RCNTRL_LOOP;
27 - /* Enable flow control and MII mode and terminate received CRC */
28 - val |= (EMAC_RCNTRL_FCE | EMAC_RCNTRL_MII_MODE | EMAC_RCNTRL_CRC_FWD);
29 + /* Enable flow control and MII mode.PFE firmware always expects
30 + CRC should be forwarded by MAC to validate CRC in software.*/
31 + val |= (EMAC_RCNTRL_FCE | EMAC_RCNTRL_MII_MODE);
33 writel(val, base + EMAC_RCNTRL_REG);