[PATCH 2/4] net: mvneta: Fix transmit errors due to dirty txdesc
Sascha Hauer
s.hauer at pengutronix.de
Sun Apr 12 23:43:10 PDT 2015
On Fri, Apr 10, 2015 at 03:01:52AM +0200, Sebastian Hesselbarth wrote:
> 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 at gmail.com>
> ---
> Cc: barebox at lists.infradead.org
> Cc: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
> Cc: Ezequiel Garcia <ezequiel.garcia at free-electrons.com>
> Cc: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
> ---
> drivers/net/mvneta.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied this one, thanks
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list