FreeBSD Bugzilla – Attachment 234029 Details for
Bug 263820
dwc: dwc driver is not able to receive packets after adding new MAC address
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Another approach to fix the problem
dwc_add_mac.patch (text/plain), 895 bytes, created by
Jiahao LI
on 2022-05-18 21:29:05 UTC
(
hide
)
Description:
Another approach to fix the problem
Filename:
MIME Type:
Creator:
Jiahao LI
Created:
2022-05-18 21:29:05 UTC
Size:
895 bytes
patch
obsolete
>diff --git a/sys/dev/dwc/if_dwc.c b/sys/dev/dwc/if_dwc.c >index d2d73f2d313..d2e2896cc81 100644 >--- a/sys/dev/dwc/if_dwc.c >+++ b/sys/dev/dwc/if_dwc.c >@@ -1118,6 +1118,11 @@ dwc_init_locked(struct dwc_softc *sc) > if (if_getdrvflags(ifp) & IFF_DRV_RUNNING) > return; > >+ /* >+ * Call mii_mediachg() which will call back into dwc_miibus_statchg() >+ * to set up the remaining config registers based on current media. >+ */ >+ mii_mediachg(sc->mii_softc); > dwc_setup_rxfilter(sc); > dwc_setup_core(sc); > dwc_enable_mac(sc, true); >@@ -1125,11 +1130,6 @@ dwc_init_locked(struct dwc_softc *sc) > > if_setdrvflagbits(ifp, IFF_DRV_RUNNING, IFF_DRV_OACTIVE); > >- /* >- * Call mii_mediachg() which will call back into dwc_miibus_statchg() >- * to set up the remaining config registers based on current media. >- */ >- mii_mediachg(sc->mii_softc); > callout_reset(&sc->dwc_callout, hz, dwc_tick, sc); > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 263820
:
233772
| 234029