From: Rabeeh Khoury Date: Tue, 19 Jun 2018 18:36:51 +0000 (+0300) Subject: net: mvneta: zero Tx descriptors on init X-Git-Tag: v2018.07-rc3~1^2~4 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=318b5d76b6661dcaf6934b0a925bbcfdf0469069;p=oweals%2Fu-boot.git net: mvneta: zero Tx descriptors on init Make the initialization sequence consistent with the Linux kernel driver. Reviewed-by: Stefan Roese Acked-by: Joe Hershberger Signed-off-by: Rabeeh Khoury Signed-off-by: Baruch Siach --- diff --git a/drivers/net/mvneta.c b/drivers/net/mvneta.c index 254dd04697..ab697b9bc7 100644 --- a/drivers/net/mvneta.c +++ b/drivers/net/mvneta.c @@ -1708,6 +1708,7 @@ static int mvneta_probe(struct udevice *dev) buffer_loc.tx_descs = (struct mvneta_tx_desc *)bd_space; size = roundup(MVNETA_MAX_TXD * sizeof(struct mvneta_tx_desc), ARCH_DMA_MINALIGN); + memset(buffer_loc.tx_descs, 0, size); buffer_loc.rx_descs = (struct mvneta_rx_desc *) ((phys_addr_t)bd_space + size); size += roundup(MVNETA_MAX_RXD * sizeof(struct mvneta_rx_desc),