From: Tsi-Chung Liew Date: Mon, 17 Mar 2008 22:08:16 +0000 (-0500) Subject: ColdFire: Fix FEC transmit issue for MCF5275 X-Git-Tag: v1.3.3-rc1~112^2~6 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f605479de2deb11e834f31dfdb0af107c86aced6;p=u-boot ColdFire: Fix FEC transmit issue for MCF5275 Signed-off-by: TsiChung Liew Signed-off-by: Ben Warren --- diff --git a/drivers/net/mcffec.c b/drivers/net/mcffec.c index 3b812585b7..71d19608ed 100644 --- a/drivers/net/mcffec.c +++ b/drivers/net/mcffec.c @@ -166,6 +166,13 @@ int fec_send(struct eth_device *dev, volatile void *packet, int length) /* Activate transmit Buffer Descriptor polling */ fecp->tdar = 0x01000000; /* Descriptor polling active */ + /* FEC fix for MCF5275, FEC unable to initial transmit data packet. + * A nop will ensure the descriptor polling active completed. + */ +#ifdef CONFIG_M5275 + __asm__ ("nop"); +#endif + #ifdef CFG_UNIFY_CACHE icache_invalid(); #endif