Page MenuHomeFreeBSD

muge(4): Lock MII bus to fix link flaps
Needs ReviewPublic

Authored by rkitover_gmail.com on Jun 6 2026, 1:57 PM.
Referenced Files
F168577988: D57489.id179343.diff
Sat, Aug 29, 2:48 AM
Unknown Object (File)
Wed, Aug 19, 6:17 AM
Unknown Object (File)
Wed, Aug 19, 2:57 AM
Unknown Object (File)
Wed, Aug 19, 2:54 AM
Unknown Object (File)
Wed, Aug 12, 7:36 PM
Unknown Object (File)
Wed, Aug 12, 12:16 AM
Unknown Object (File)
Tue, Aug 11, 5:53 PM
Unknown Object (File)
Tue, Aug 11, 3:46 AM
Subscribers

Details

Summary

Add a lock for MII bus operations and drop ticks if the lock is held to
work-around a race condition in the MII bus layer, see:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252165

. Tested with the EVB-LAN7800LC-1 MICROCHIP LAN7800 evaluation board.

This should fix Ethernet on the Raspberry Pi 3 and some other models
possibly.

Signed-off-by: Rafael Kitover <rkitover@gmail.com>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 73727
Build 70610: arc lint + arc unit