diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2014-09-22 22:54:43 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-23 02:38:40 +0400 |
commit | 4a0c081eff43a11c65dee3ad6c457f7f58bcebe0 (patch) | |
tree | 055ff5d64bf6a601eb5165c0820fcb18db998121 /arch/mips/mm/init.c | |
parent | 478a010c9235ca92e66cc5058b42e30e33275ad4 (diff) | |
download | linux-4a0c081eff43a11c65dee3ad6c457f7f58bcebe0.tar.xz |
net: bcmgenet: call bcmgenet_dma_teardown in bcmgenet_fini_dma
We should not be manipulaging the DMA_CTRL registers directly by writing
0 to them to disable DMA. This is an operation that needs to be timed to
make sure the DMA engines have been properly stopped since their state
machine stops on a packet boundary, not immediately.
Make sure that tha bcmgenet_fini_dma() calls bcmgenet_dma_teardown() to
ensure a proper DMA engine state. As a result, we need to reorder the
function bodies to resolve the use dependency.
Fixes: 1c1008c793fa ("net: bcmgenet: add main driver file")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/mips/mm/init.c')
0 files changed, 0 insertions, 0 deletions