]> 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)
commit32d3f1a52bbbf8f8e2d9024778d90461ff223375
tree12e7f5685d7e3c9809fd64bd4bed56c95a737fe7
parentb745c886fe8e8797a1bba7f9421f56936cbb8412
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