projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ethtool: allow custom interval for physical identification
[GitHub/mt8127/android_kernel_alcatel_ttab.git]
/
drivers
/
net
/
niu.c
diff --git
a/drivers/net/niu.c
b/drivers/net/niu.c
index 3fa1e9cdb4a85fbd9e219287d140bc75fd2596dc..ea2272f0f37ea4efb2904d82d635e8114b1ec92a 100644
(file)
--- a/
drivers/net/niu.c
+++ b/
drivers/net/niu.c
@@
-7896,7
+7896,7
@@
static int niu_set_phys_id(struct net_device *dev,
switch (state) {
case ETHTOOL_ID_ACTIVE:
np->orig_led_state = niu_led_state_save(np);
- return
-EINVAL;
+ return
1; /* cycle on/off once per second */
case ETHTOOL_ID_ON:
niu_force_led(np, 1);