mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-02-26 22:22:34 +01:00
net: mvpp2.c: Clear all buffer / descriptor areas before usage
This fixes problems noticed with the PPv2.2 A7k/8k port, when not all elements of the descriptors had been cleared before use. Signed-off-by: Stefan Roese <sr@denx.de> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
parent
1fabbd074e
commit
30edc374ea
1 changed files with 3 additions and 0 deletions
|
|
@ -4429,6 +4429,9 @@ static int mvpp2_base_probe(struct udevice *dev)
|
|||
size += RX_BUFFER_SIZE;
|
||||
}
|
||||
|
||||
/* Clear the complete area so that all descriptors are cleared */
|
||||
memset(bd_space, 0, size);
|
||||
|
||||
/* Save base addresses for later use */
|
||||
priv->base = (void *)dev_get_addr_index(dev, 0);
|
||||
if (IS_ERR(priv->base))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue