Files
android_kernel_xiaomi_sm8450/drivers/net/ethernet/broadcom
Florian Fainelli 4a0c081eff 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: 1c1008c793 ("net: bcmgenet: add main driver file")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-09-22 18:38:40 -04:00
..
2014-05-13 17:43:20 -04:00
2014-05-13 17:43:20 -04:00
2014-06-25 16:27:27 -07:00
2014-06-25 16:27:27 -07:00
2014-06-25 16:27:27 -07:00
2014-06-25 16:27:27 -07:00
2014-09-05 20:47:14 -07:00
2014-06-25 16:27:27 -07:00