]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: macb: Reset TX when TX halt times out
authorHarini Katakam <harini.katakam@xilinx.com>
Fri, 17 Mar 2023 11:39:43 +0000 (17:09 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sun, 19 Mar 2023 10:53:28 +0000 (10:53 +0000)
commit72abf2179969a54c16c03b1649b922ec179b364a
tree461bf7c7699fbad843c0bba40b60693d25fd2d00
parente485f3a6eae0849f83b94936778a2325f72a0c89
net: macb: Reset TX when TX halt times out

Reset TX when halt times out i.e. disable TX, clean up TX BDs,
interrupts (already done) and enable TX.
This addresses the issue observed when iperf is run at 10Mps Half
duplex where, after multiple collisions and retries, TX halts.

Signed-off-by: Harini Katakam <harini.katakam@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb_main.c