Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145740094
D34394.id104083.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D34394.id104083.diff
View Options
diff --git a/sys/dev/neta/if_mvneta.c b/sys/dev/neta/if_mvneta.c
--- a/sys/dev/neta/if_mvneta.c
+++ b/sys/dev/neta/if_mvneta.c
@@ -1679,7 +1679,7 @@
reg |= MVNETA_PRXTXTI_PMISCICSUMMARY;
MVNETA_WRITE(sc, MVNETA_PRXTXTIM, reg);
- if (sc->use_inband_status) {
+ if (!sc->phy_attached || sc->use_inband_status) {
/* Enable Port MISC Intr. (via RXTX_TH_Summary bit) */
MVNETA_WRITE(sc, MVNETA_PMIM, MVNETA_PMI_PHYSTATUSCHNG |
MVNETA_PMI_LINKCHANGE | MVNETA_PMI_PSCSYNCCHANGE);
@@ -1711,7 +1711,7 @@
/* Ack maintance interrupt first */
if (__predict_false((ic & MVNETA_PRXTXTI_PMISCICSUMMARY) &&
- sc->use_inband_status)) {
+ (!sc->phy_attached || sc->use_inband_status))) {
mvneta_sc_lock(sc);
mvneta_misc_intr(sc);
mvneta_sc_unlock(sc);
@@ -2466,7 +2466,7 @@
sc->autoneg = (IFM_SUBTYPE(media) == IFM_AUTO);
- if (sc->use_inband_status)
+ if (!sc->phy_attached || sc->use_inband_status)
mvneta_update_autoneg(sc, IFM_SUBTYPE(media) == IFM_AUTO);
mvneta_update_eee(sc);
@@ -2629,7 +2629,7 @@
KASSERT_SC_MTX(sc);
- if (!sc->use_inband_status) {
+ if (!sc->phy_attached || !sc->use_inband_status) {
reg = MVNETA_READ(sc, MVNETA_PANC);
reg |= MVNETA_PANC_FORCELINKPASS;
reg &= ~MVNETA_PANC_FORCELINKFAIL;
@@ -2649,7 +2649,7 @@
KASSERT_SC_MTX(sc);
- if (!sc->use_inband_status) {
+ if (!sc->phy_attached || !sc->use_inband_status) {
reg = MVNETA_READ(sc, MVNETA_PANC);
reg &= ~MVNETA_PANC_FORCELINKPASS;
reg |= MVNETA_PANC_FORCELINKFAIL;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Feb 24, 7:46 PM (9 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28978204
Default Alt Text
D34394.id104083.diff (1 KB)
Attached To
Mode
D34394: Fix mvneta driver that doesn't handle fixed link properly
Attached
Detach File
Event Timeline
Log In to Comment