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 <jcd@tribudubois.net> Signed-off-by: Jason Wang <jasowang@redhat.com>
This commit is contained in:
parent
ccdb81d327
commit
ff4b325f5e
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user