net: mvneta: Fix transmit errors due to dirty txdesc
Marvell Neta's transmit descriptor (txdesc) is allocated by dma_alloc_coherent()
but not zeroed before calling mvneta_send the first time. This can cause spurious
transmit errors due to improperly set bits in txdesc's cmd_sts field.

Fix initial transmit errors by always writing whole cmd_sts field instead of ORing
the bits.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent da440ab commit a60d04c247ee8020e63d102d5543d9ac9d3d93be
@Sebastian Hesselbarth Sebastian Hesselbarth authored on 9 Apr 2015
Sascha Hauer committed on 13 Apr 2015
Showing 1 changed file
View
drivers/net/mvneta.c