]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
if_dwc: fix reinitialization with changed MAC
authorJiahao LI <jiahali@blackberry.com>
Thu, 8 Sep 2022 15:50:37 +0000 (12:50 -0300)
committerMitchell Horne <mhorne@FreeBSD.org>
Fri, 9 Sep 2022 15:31:26 +0000 (12:31 -0300)
commit6501fcdc0a97faa3c59f6ece314bf7754303db6f
treedb1c017566425ce8cf8a89f6da3c9dc216803a32
parent87705c5c21784c401a8d425b2780bb8b1c37d431
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
sys/dev/dwc/if_dwc.c