From ff4b325f5e1d68cd089e71edcaa3fe3432ca18dc Mon Sep 17 00:00:00 2001 From: Jean-Christophe Dubois Date: Mon, 30 May 2016 19:26:00 +0200 Subject: i.MX: reset TX/RX descriptors when FEC is disabled. According to the FEC chapter of i.MX25 reference manual RX adn TX descriptors are reseted when the FEC device is disabled through ECR. Signed-off-by: Jean-Christophe Dubois Signed-off-by: Jason Wang --- hw/net/imx_fec.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'hw/net/imx_fec.c') diff --git a/hw/net/imx_fec.c b/hw/net/imx_fec.c index 768181e3c1..7369cfafe5 100644 --- a/hw/net/imx_fec.c +++ b/hw/net/imx_fec.c @@ -454,6 +454,8 @@ static void imx_fec_write(void *opaque, hwaddr addr, } if ((s->ecr & FEC_EN) == 0) { s->rx_enabled = 0; + s->rx_descriptor = s->erdsr; + s->tx_descriptor = s->etdsr; } break; case 0x040: /* MMFR */ -- cgit v1.2.3-55-g7522