]> git.baikalelectronics.ru Git - uboot.git/commit
net: mvpp2: Add remove function that is called before the OS is started
authorStefan Roese <sr@denx.de>
Thu, 23 Mar 2017 16:01:59 +0000 (17:01 +0100)
committerStefan Roese <sr@denx.de>
Tue, 9 May 2017 11:38:17 +0000 (13:38 +0200)
commitb60e4af5cd8c595792bc3bc2c1d799a9095c92e1
treef31670da4ca55a0ecd620356774e9c296df911c2
parentc98ffb239fd263c2cbad19ccf195b98ee58d5c15
net: mvpp2: Add remove function that is called before the OS is started

This patch adds a remove function to the mvpp2 ethernet driver which is
called before the OS is started, doing:

- Allocate the used buffers back from the buffer manager
- Stop the BM activity

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Stefan Chulski <stefanc@marvell.com>
Cc: Kostya Porotchkin <kostap@marvell.com>
Cc: Nadav Haklai <nadavh@marvell.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/mvpp2.c