Page MenuHomeFreeBSD

eqos: MII bus force auto negotiation
AbandonedPublic

Authored by renatoalencar.73_gmail.com on Mar 23 2024, 3:45 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, May 5, 6:41 PM
Unknown Object (File)
Fri, May 3, 11:14 PM
Unknown Object (File)
Apr 6 2024, 12:30 PM
Unknown Object (File)
Mar 26 2024, 7:30 PM
Subscribers

Details

Reviewers
manu
andrew
Summary

This driver doesn't handle auto negotiation, and it may not work although the current PHY may report auto negotiation capability. An way of handling this is to force auto negotiation from the MAC side. In this case, auto negotiation doesn't happen if the interface is initialized with cable on, only after restarting the interface with cable unplugged, or run ifconfig eqos0 media none && ifconfig eqos0 media auto.

Currently tested for RK3566 + YT8511C, on the Orange Pi 3B SBC board.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

renatoalencar.73_gmail.com retitled this revision from eqos: Mii bus force auto negotiation to eqos: MII bus force auto negotiation.Mar 23 2024, 3:53 PM
renatoalencar.73_gmail.com edited the summary of this revision. (Show Details)

I'm closing this since I figured this is a hardware bug and not a software one, it turns out the PHY is not responding to changes on the least significant bit of the PHY address, which causes it to be detected as multiple different phys. mii_mediachg will end up isolating it and stopping auto negotiation. Setting phymask hint to 1 will solve this problem.