]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: stmicro: stmmac: move queue reset to dedicated functions
authorChristian Marangi <ansuelsmth@gmail.com>
Sat, 23 Jul 2022 14:29:29 +0000 (16:29 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 26 Jul 2022 02:38:56 +0000 (19:38 -0700)
commitdb779780758ef492b71b4d6d3bc86009a61392d8
tree12e7f5685d7e3c9809fd64bd4bed56c95a737fe7
parent334d5852aca4dcbf02f4070614b3859fc7dd0ee7
net: ethernet: stmicro: stmmac: move queue reset to dedicated functions

Move queue reset to dedicated functions. This aside from a simple
cleanup is also required to allocate a dma conf without resetting the tx
queue while the device is temporarily detached as now the reset is not
part of the dma init function and can be done later in the code flow.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c