]> git.sur5r.net Git - u-boot/commit
net: mvpp2x: fix BM configuration overrun issue
authorStefan Chulski <stefanc@marvell.com>
Wed, 9 Aug 2017 07:37:46 +0000 (10:37 +0300)
committerStefan Roese <sr@denx.de>
Thu, 10 Aug 2017 06:33:02 +0000 (08:33 +0200)
commitbb915c843f28573bb31496644e7f7e2c0a066fd8
treec877058871231c009c6489f11f737dbf08d8a478
parent73f592fb724153f8afbd79098f918ff548fda7ef
net: mvpp2x: fix BM configuration overrun issue

Issue:
BM counters were overrun by probe that called per Network interface and
caused release of wrong number of buffers during remove procedure.

Fix:
Use probe_done and num_ports to call init and remove procedure
once per communication controller.

Signed-off-by: Stefan Chulski <stefanc@marvell.com>
Tested-by: iSoC Platform CI <ykjenk@marvell.com>
Reviewed-by: Igal Liberman <igall@marvell.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Signed-off-by: Stefan Roese <sr@denx.de>
drivers/net/mvpp2.c