提交 b9eef55c 编写于 作者: J Jim Baxter 提交者: David S. Miller

net: fec: Fix RMON registers on imx6

commit 38ae92dc "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: NJim Baxter <jim_baxter@mentor.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 7cc47d13
......@@ -606,11 +606,8 @@ fec_restart(struct net_device *ndev, int duplex)
ecntl |= (1 << 4);
#ifndef CONFIG_M5272
/* Disable, clear, and enable the MIB */
writel(1 << 31, fep->hwp + FEC_MIB_CTRLSTAT);
for (i = RMON_T_DROP; i < IEEE_R_OCTETS_OK; i++)
writel(0, fep->hwp + i);
writel(0, fep->hwp + FEC_MIB_CTRLSTAT);
/* Enable the MIB statistic event counters */
writel(0 << 31, fep->hwp + FEC_MIB_CTRLSTAT);
#endif
/* And last, enable the transmit and receive processing */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册