aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/modules.py
diff options
context:
space:
mode:
authorHayes Wang <[email protected]>2023-04-28 16:53:29 +0800
committerDavid S. Miller <[email protected]>2023-05-01 07:32:04 +0100
commit8ceda6d5a1e5402fd852e6cc59a286ce3dc545ee (patch)
tree0ffdae381e2dd5348802b6389321123f1bcb8a9e /scripts/gdb/linux/modules.py
parent526f28bd0fbdc699cda31426928802650c1528e5 (diff)
r8152: fix flow control issue of RTL8156A
The feature of flow control becomes abnormal, if the device sends a pause frame and the tx/rx is disabled before sending a release frame. It causes the lost of packets. Set PLA_RX_FIFO_FULL and PLA_RX_FIFO_EMPTY to zeros before disabling the tx/rx. And, toggle FC_PATCH_TASK before enabling tx/rx to reset the flow control patch and timer. Then, the hardware could clear the state and the flow control becomes normal after enabling tx/rx. Besides, remove inline for fc_pause_on_auto() and fc_pause_off_auto(). Fixes: 195aae321c82 ("r8152: support new chips") Signed-off-by: Hayes Wang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions