diff options
| author | Charles Perry <charles.perry@microchip.com> | 2026-04-08 06:18:16 -0700 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-04-12 14:19:19 -0700 |
| commit | 96aefe3afe0e122a1472967224ffe21c3d51b67b (patch) | |
| tree | 4af9fe08ea1a9559bb920f26bac908e197dce5a9 /tools/testing/vma/include/git@git.tavy.me:linux.git | |
| parent | f76aef980206e7c6bc09933fd3c8e2b8a3479bd2 (diff) | |
net: phy: add a PHY write barrier when disabling interrupts
MDIO bus controllers are not required to wait for write transactions to
complete before returning as synchronization is often achieved by polling
status bits.
This can cause issues when disabling interrupts since an interrupt could
fire before the interrupt handler is unregistered and there's no status
bit to poll.
Add a phy_write_barrier() function and use it in phy_disable_interrupts()
to fix this issue. The write barrier just reads an MII register and
discards the value, which is enough to guarantee that previous writes have
completed.
Signed-off-by: Charles Perry <charles.perry@microchip.com>
Link: https://patch.msgid.link/20260408131821.1145334-4-charles.perry@microchip.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/testing/vma/include/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
