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)
Mon, Dec 15, 2:16 PM
Unknown Object (File)
Thu, Dec 4, 7:26 AM
Unknown Object (File)
Tue, Dec 2, 12:09 PM
Unknown Object (File)
Mon, Dec 1, 7:08 PM
Unknown Object (File)
Thu, Nov 27, 4:04 PM
Unknown Object (File)
Wed, Nov 26, 8:46 PM
Unknown Object (File)
Nov 16 2025, 7:32 PM
Unknown Object (File)
Nov 12 2025, 4:50 AM
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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 45998
Build 42886: arc lint + arc unit