diff options
| author | Karl Mehltretter <kmehltretter@gmail.com> | 2026-08-17 06:30:57 +0200 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2026-08-18 12:02:11 +0200 |
| commit | cb7643b78d35392f0f434774d78b4c77b80f677f (patch) | |
| tree | 96a2a1b999744421aedefb3e7a7c05cc95def57b /tools/perf/scripts/python/stackcollapse.py | |
| parent | bc2dc66a6693a78f8c1e6ca2dbebd50f16e2c366 (diff) | |
8139cp: fix Rx and Tx not being disabled in cp_suspend
On QEMU rtl8139 model, frames that arrive while the interface is
suspended still end up in the stack after resume. With pm_test=devices,
which keeps devices suspended for 5s, 200 frames sent to interface
during that time and 50 frames after resume, eth0 reports 113
received frames.
cp_suspend() is supposed to stop receiver and the transmitter, but
the mask is wrong: (~RxOn | ~TxOn) is ~0, nothing is cleared and Cmd
still reads 0x0d when cp_suspend() returns.
Use ~(RxOn | TxOn) so both bits are actually cleared.
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Karl Mehltretter <kmehltretter@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20260817043057.20099-1-kmehltretter@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
