Page MenuHomeFreeBSD

Poll PHY status using internal e6000sw registers
ClosedPublic

Authored by mw_semihalf.com on May 14 2017, 12:46 AM.
Tags
Referenced Files
Unknown Object (File)
Thu, Apr 18, 10:19 AM
Unknown Object (File)
Sun, Mar 31, 12:18 PM
Unknown Object (File)
Mar 17 2024, 6:50 AM
Unknown Object (File)
Jan 27 2024, 7:27 AM
Unknown Object (File)
Jan 19 2024, 10:12 PM
Unknown Object (File)
Jan 15 2024, 9:17 PM
Unknown Object (File)
Dec 29 2023, 1:19 PM
Unknown Object (File)
Nov 9 2023, 9:37 AM
Subscribers

Details

Summary

e6000sw family automatically reflects PHY status in each port's registers.
Therefore it is not necessary to do a full PHY polling squence, which
results in much quicker operation and much less significant usage of
the SMI bus.

Care must be taken that the resulting ifmedia_active is identical to
what the PHY will compute, or gratuitous link status changes will
occur whenever the PHYs update function is called.

This patch implements above improvement. On the occasion set a pointer to
the proc structure to be part of software context instead of being
a global variable.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

A couple of long lines in new code but otherwise this is good to go.

This revision is now accepted and ready to land.May 18 2017, 5:20 PM
This revision was automatically updated to reflect the committed changes.