]> git.baikalelectronics.ru Git - kernel.git/commit
8139too: fix system hang when there is a tx timeout event.
authorChun-Hao Lin <hau@realtek.com>
Mon, 1 Aug 2016 05:45:30 +0000 (13:45 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Aug 2016 04:38:53 +0000 (21:38 -0700)
commit37f0110f93e2b4d81f2aeccc7757956163ee46f6
treeddc0952a58ad899a6ce88cb5a1daed5f404b3d22
parent03e0ebbba408a9b7319b61b4ca12dd684f67d27b
8139too: fix system hang when there is a tx timeout event.

If tx timeout event occur, kernel will call rtl8139_tx_timeout_task() to reset
hardware. But in this function, driver does not stop tx and rx function before
reset hardware, that will cause system hang.

In this patch, add stop tx and rx function before reset hardware.

Signed-off-by: Chunhao Lin <hau@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/8139too.c