OSDN Git Service

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)
commitf9ec5723c3dbfcede9c7b0dcdf85e401ce16316c
tree12e7f5685d7e3c9809fd64bd4bed56c95a737fe7
parentaa246499bb5f44bf4822ff1966213c14912c732c
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