Skip to content

Commit b9eef55

Browse files
Jim Baxterdavem330
Jim Baxter
authored andcommitted
net: fec: Fix RMON registers on imx6
commit 38ae92d "fec: Add support for reading RMON registers" causes the imx6Q to crash. This fixes it by only enabling the RMON registers, the registers are already cleared by the MAC being reset. Signed-off-by: Jim Baxter <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 7cc47d1 commit b9eef55

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

drivers/net/ethernet/freescale/fec_main.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -606,11 +606,8 @@ fec_restart(struct net_device *ndev, int duplex)
606606
ecntl |= (1 << 4);
607607

608608
#ifndef CONFIG_M5272
609-
/* Disable, clear, and enable the MIB */
610-
writel(1 << 31, fep->hwp + FEC_MIB_CTRLSTAT);
611-
for (i = RMON_T_DROP; i < IEEE_R_OCTETS_OK; i++)
612-
writel(0, fep->hwp + i);
613-
writel(0, fep->hwp + FEC_MIB_CTRLSTAT);
609+
/* Enable the MIB statistic event counters */
610+
writel(0 << 31, fep->hwp + FEC_MIB_CTRLSTAT);
614611
#endif
615612

616613
/* And last, enable the transmit and receive processing */

0 commit comments

Comments
 (0)