• J
    net: stmmac: reset Tx desc base address before restarting Tx · f421031e
    Jongsung Kim 提交于
    Refer to the databook of DesignWare Cores Ethernet MAC Universal:
    
    6.2.1.5 Register 4 (Transmit Descriptor List Address Register
    
    If this register is not changed when the ST bit is set to 0, then
    the DMA takes the descriptor address where it was stopped earlier.
    
    The stmmac_tx_err() does zero indices to Tx descriptors, but does
    not reset HW current Tx descriptor address. To fix inconsistency,
    the base address of the Tx descriptors should be rewritten before
    restarting Tx.
    Signed-off-by: NJongsung Kim <neidhard.kim@lge.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    f421031e
stmmac_main.c 135.5 KB