]> git.ipfire.org Git - thirdparty/linux.git/commit
lan743x: Fix TX Stall Issue
authorBryan Whitehead <Bryan.Whitehead@microchip.com>
Wed, 13 Mar 2019 19:55:48 +0000 (15:55 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Mar 2019 20:41:46 +0000 (13:41 -0700)
commitdeb6bfabdbb634e91f36a4e9cb00a7137d72d886
treeac1156d07998e977c97cbe6477f21666271def3e
parent4d09d8d8f91db575cf0f34f35d712fc66655fbe5
lan743x: Fix TX Stall Issue

It has been observed that tx queue may stall while downloading
from certain web sites (example www.speedtest.net)

The cause has been tracked down to a corner case where
the tx interrupt vector was disabled automatically, but
was not re enabled later.

The lan743x has two mechanisms to enable/disable individual
interrupts. Interrupts can be enabled/disabled by individual
source, and they can also be enabled/disabled by individual
vector which has been mapped to the source. Both must be
enabled for interrupts to work properly.

The TX code path, primarily uses the interrupt enable/disable of
the TX source bit, while leaving the vector enabled all the time.

However, while investigating this issue it was noticed that
the driver requested the use of the vector auto clear feature.

The test above revealed a case where the vector enable was
cleared unintentionally.

This patch fixes the issue by deleting the lines that request
the vector auto clear feature to be used.

Fixes: 23f0703c125b ("lan743x: Add main source files for new lan743x driver")
Signed-off-by: Bryan Whitehead <Bryan.Whitehead@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microchip/lan743x_main.c