[Bug 263820] dwc: dwc driver is not able to receive packets after adding new MAC address

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 18 May 2022 21:29:05 UTC

--- Comment #3 from Jiahao LI <jiahali@blackberry.com> ---
Created attachment 234029
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=234029&action=edit
Another approach to fix the problem

I referred to other open-source software. In OpenBSD, they will configure the
media, mii_mediachg, firstly before setting the dwc driver's registers.
(https://github.com/openbsd/src/blob/master/sys/dev/fdt/if_dwge.c line 1080)

I have also tried this in my hardware, RockPro64, and attached the patch. The
patch can fix the problem. Intuitively, it looks like the setting of dwc driver
should be after the setting of media based on the two attached patches.

You are receiving this mail because:
You are the assignee for the bug.