Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 May 2022 21:29:05 +0000
From:      bugzilla-noreply@freebsd.org
To:        net@FreeBSD.org
Subject:   [Bug 263820] dwc: dwc driver is not able to receive packets after adding new MAC address
Message-ID:  <bug-263820-7501-Hu07blkq4o@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-263820-7501@https.bugs.freebsd.org/bugzilla/>
References:  <bug-263820-7501@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263820

--- 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.


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-263820-7501-Hu07blkq4o>