HomeFreeBSD

if_dwc: fix reinitialization with changed MAC

Description

if_dwc: fix reinitialization with changed MAC

It was observed that on RockPro64 hardware, the dwc interface is unable
to receive packets after being assigned a new MAC address. The fix is
simply to call mii_mediachg() before touching any device registers in
dwc_init_locked(). This is consistent with what the OpenBSD driver does.

PR: 263820
MFC after: 1 week

Details

Provenance
Jiahao LI <jiahali@blackberry.com>Authored on Sep 8 2022, 3:50 PM
mhorneCommitted on Sep 9 2022, 3:31 PM
Parents
rG87705c5c2178: bcm2835_clkman: add RPI4 compat string
Branches
Unknown
Tags
Unknown