diff options
author | Jongsung Kim <neidhard.kim@lge.com> | 2019-12-06 20:40:00 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-09-26 14:07:09 +0200 |
commit | 3c1d9b650c0802c003ed70bab4fc01476000bb46 (patch) | |
tree | d95fa3fc87b1aeb6bbc07812f01e54e0a446bdf6 /lib | |
parent | 729f9d5ee3740196071dc15031ce48f3e7659b9a (diff) | |
download | linux-stable-3c1d9b650c0802c003ed70bab4fc01476000bb46.tar.gz linux-stable-3c1d9b650c0802c003ed70bab4fc01476000bb46.tar.bz2 linux-stable-3c1d9b650c0802c003ed70bab4fc01476000bb46.zip |
net: stmmac: reset Tx desc base address before restarting Tx
commit f421031e3ff0dd288a6e1bbde9aa41a25bb814e6 upstream.
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: Jongsung Kim <neidhard.kim@lge.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Cc: Macpaul Lin <macpaul.lin@mediatek.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions