]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: stmmac: dma channel control register need to be init first
authorWeifeng Voon <weifeng.voon@intel.com>
Tue, 21 May 2019 05:38:38 +0000 (13:38 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Jun 2019 06:01:29 +0000 (08:01 +0200)
commit0a2d02301d7b69f19e3afcba38f61b7d571f39a2
tree3c9b048f8662409d36011ee6452ae4baaf1944d6
parent8d54fa13b3a1b706ca9f4c23a2127f43f5904abd
net: stmmac: dma channel control register need to be init first

stmmac_init_chan() needs to be called before stmmac_init_rx_chan() and
stmmac_init_tx_chan(). This is because if PBLx8 is to be used,
"DMA_CH(#i)_Control.PBLx8" needs to be set before programming
"DMA_CH(#i)_TX_Control.TxPBL" and "DMA_CH(#i)_RX_Control.RxPBL".

Fixes: 47f2a9ce527a ("net: stmmac: dma channel init prepared for multiple queues")
Reviewed-by: Zhang, Baoli <baoli.zhang@intel.com>
Signed-off-by: Ong Boon Leong <boon.leong.ong@intel.com>
Signed-off-by: Weifeng Voon <weifeng.voon@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c