linux/drivers/net/ethernet/broadcom/genet
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
..
bcmgenet.c net: bcmgenet: call bcmgenet_dma_teardown in bcmgenet_fini_dma 2014-09-22 18:38:40 -04:00
bcmgenet.h net: bcmgenet: re-align multiple lines correctly 2014-07-23 15:14:25 -07:00
bcmgenet_wol.c net: bcmgenet: add Wake-on-LAN support code 2014-07-21 16:04:31 -07:00
bcmmii.c net: bcmgenet: update UMAC_CMD only when link is detected 2014-08-11 15:10:11 -07:00
Makefile net: bcmgenet: add Wake-on-LAN support code 2014-07-21 16:04:31 -07:00