Page MenuHomeFreeBSD

if_dwc: recognize additional rgmii phy-modes
ClosedPublic

Authored by mhorne on Jun 15 2022, 7:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, May 20, 3:24 PM
Unknown Object (File)
Fri, May 9, 5:42 AM
Unknown Object (File)
Apr 23 2025, 12:51 PM
Unknown Object (File)
Apr 20 2025, 4:12 AM
Unknown Object (File)
Apr 2 2025, 10:01 PM
Unknown Object (File)
Mar 29 2025, 4:25 AM
Unknown Object (File)
Mar 18 2025, 8:28 PM
Unknown Object (File)
Feb 23 2025, 6:14 PM
Subscribers

Details

Summary

Per the reports, some Allwinner device trees now list the desired
phy-mode as "rgmii-id". The manual string comparison fails to detect
this, and we end up falling back to MII mode. Instead, select the clock
name using the sc->phy_mode variable, which is set in the main attach
function.

The logic to actually handle rgmii-id mode delays will be added to the
relevant PHY driver.

PR: 261355, 264673
Reported by: Maren <marentoy@protonmail.com>
Reported by: Arie Bikker <src-2016@bikker.homeunix.net>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable