net: ethernet: ti: davinci_cpdma: fix fixed prio cpdma ctlr configuration
authorIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Fri, 11 Nov 2016 13:45:24 +0000 (15:45 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 13 Nov 2016 18:40:24 +0000 (13:40 -0500)
commit991ddb1f6a94dcf2d0cdc9efd0a1f8fcd21cfedc
treeac82fd5f91c0379797d6e06a28dfc9d0b5252f01
parentf7ad3d4b83e694347cddc96d956143068bef32c9
net: ethernet: ti: davinci_cpdma: fix fixed prio cpdma ctlr configuration

The dma ctlr is reseted to 0 while cpdma soft reset, thus cpdma ctlr
cannot be configured after cpdma is stopped. So restoring content
of cpdma ctlr while off/on procedure is needed. The cpdma ctlr off/on
procedure is present while interface down/up and while changing number
of channels with ethtool. In order to not restore content in many
places, move it to cpdma_ctlr_start().

Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c
drivers/net/ethernet/ti/davinci_cpdma.c