Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F162728242
D45919.id164206.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
938 B
Referenced Files
None
Subscribers
None
D45919.id164206.diff
View Options
diff --git a/sys/dev/mii/mv88e151x.c b/sys/dev/mii/mv88e151x.c
--- a/sys/dev/mii/mv88e151x.c
+++ b/sys/dev/mii/mv88e151x.c
@@ -97,7 +97,7 @@
{
const struct mii_attach_args *ma;
struct mii_softc *sc;
- uint32_t cop_cap, cop_extcap;
+ uint32_t cop_cap = 0, cop_extcap = 0;
sc = device_get_softc(dev);
ma = device_get_ivars(dev);
@@ -224,10 +224,12 @@
else if (reg & MV88E151X_STATUS_LINK &&
reg & MV88E151X_STATUS_SYNC &&
(reg & MV88E151X_STATUS_ENERGY) == 0) {
- if ((reg & MV88E151X_STATUS_SPEED_MASK) ==
+ if (((reg & MV88E151X_STATUS_SPEED_MASK) >>
+ MV88E151X_STATUS_SPEED_SHIFT) ==
MV88E151X_STATUS_SPEED_1000)
mii->mii_media_active |= IFM_1000_SX;
- else if ((reg & MV88E151X_STATUS_SPEED_MASK) ==
+ else if (((reg & MV88E151X_STATUS_SPEED_MASK) >>
+ MV88E151X_STATUS_SPEED_SHIFT) ==
MV88E151X_STATUS_SPEED_100)
mii->mii_media_active |= IFM_100_FX;
else
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 17, 5:19 AM (15 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35126363
Default Alt Text
D45919.id164206.diff (938 B)
Attached To
Mode
D45919: mv88e151x: fix potential attach and autonegotiation issues
Attached
Detach File
Event Timeline
Log In to Comment