Repository navigation
Commit 0a2f0d2
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>1 parent 1b4985b commit 0a2f0d2
1 file changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1667 | 1667 | | |
1668 | 1668 | | |
1669 | 1669 | | |
| 1670 | + | |
| 1671 | + | |
| 1672 | + | |
| 1673 | + | |
1670 | 1674 | | |
1671 | 1675 | | |
1672 | 1676 | | |
| |||
1696 | 1700 | | |
1697 | 1701 | | |
1698 | 1702 | | |
1699 | | - | |
1700 | | - | |
1701 | | - | |
1702 | | - | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
| 1706 | + | |
1703 | 1707 | | |
1704 | 1708 | | |
1705 | 1709 | | |
| |||
0 commit comments