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
F103051466: D10714.diff
Wed, Nov 20, 7:25 AM
Unknown Object (File)
Sat, Nov 16, 8:56 PM
Unknown Object (File)
Sun, Nov 10, 3:11 PM
Unknown Object (File)
Sat, Nov 9, 8:05 PM
Unknown Object (File)
Oct 17 2024, 1:50 PM
Unknown Object (File)
Oct 10 2024, 2:35 AM
Unknown Object (File)
Oct 4 2024, 11:47 PM
Unknown Object (File)
Oct 2 2024, 6:15 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 Not Applicable
Unit
Tests Not Applicable

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.