Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178270596
D60828.1796383387.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
563 B
Referenced Files
None
Subscribers
None
D60828.1796383387.diff
View Options
Index: sys/dev/usb/net/if_smsc.c
===================================================================
--- sys/dev/usb/net/if_smsc.c
+++ sys/dev/usb/net/if_smsc.c
@@ -1428,7 +1428,9 @@
(sc->sc_rev_id & SMSC_ID_REV_CHIP_REV_MASK));
/* GPIO/LED setup */
- reg_val = SMSC_LED_GPIO_CFG_SPD_LED | SMSC_LED_GPIO_CFG_LNK_LED |
+ if (smsc_read_reg(sc, SMSC_LED_GPIO_CFG, ®_val) < 0)
+ reg_val = 0;
+ reg_val |= SMSC_LED_GPIO_CFG_SPD_LED | SMSC_LED_GPIO_CFG_LNK_LED |
SMSC_LED_GPIO_CFG_FDX_LED;
smsc_write_reg(sc, SMSC_LED_GPIO_CFG, reg_val);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 4, 11:23 AM (9 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42206780
Default Alt Text
D60828.1796383387.diff (563 B)
Attached To
Mode
D60828: smsc: Use read-modify-write to configure LEDs
Attached
Detach File
Event Timeline