]> Pileus Git - ~andy/linux/blobdiff - drivers/net/niu.c
ethtool: allow custom interval for physical identification
[~andy/linux] / drivers / net / niu.c
index 3fa1e9cdb4a85fbd9e219287d140bc75fd2596dc..ea2272f0f37ea4efb2904d82d635e8114b1ec92a 100644 (file)
@@ -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);