Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157183489
D5448.id13742.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
998 B
Referenced Files
None
Subscribers
None
D5448.id13742.diff
View Options
Index: sys/dev/e1000/e1000_phy.c
===================================================================
--- sys/dev/e1000/e1000_phy.c
+++ sys/dev/e1000/e1000_phy.c
@@ -4146,13 +4146,12 @@
*data = E1000_READ_REG(hw, E1000_MPHY_DATA);
/* Disable access to mPHY if it was originally disabled */
- if (locked)
+ if (locked) {
ready = e1000_is_mphy_ready(hw);
if (!ready)
return -E1000_ERR_PHY;
- E1000_WRITE_REG(hw, E1000_MPHY_ADDR_CTRL,
- E1000_MPHY_DIS_ACCESS);
-
+ }
+ E1000_WRITE_REG(hw, E1000_MPHY_ADDR_CTRL, E1000_MPHY_DIS_ACCESS);
return E1000_SUCCESS;
}
@@ -4211,13 +4210,12 @@
E1000_WRITE_REG(hw, E1000_MPHY_DATA, data);
/* Disable access to mPHY if it was originally disabled */
- if (locked)
+ if (locked) {
ready = e1000_is_mphy_ready(hw);
if (!ready)
return -E1000_ERR_PHY;
- E1000_WRITE_REG(hw, E1000_MPHY_ADDR_CTRL,
- E1000_MPHY_DIS_ACCESS);
-
+ }
+ E1000_WRITE_REG(hw, E1000_MPHY_ADDR_CTRL, E1000_MPHY_DIS_ACCESS);
return E1000_SUCCESS;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, May 20, 2:29 AM (18 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33335543
Default Alt Text
D5448.id13742.diff (998 B)
Attached To
Mode
D5448: Fix missing brackets in e1000_phy.c
Attached
Detach File
Event Timeline
Log In to Comment