ethtool: allow custom interval for physical identification
[sfrench/cifs-2.6.git] / drivers / net / s2io.c
index 2d5cc6142c044ae3a2ad11d472403b7a0f961b7e..2302d9743744124f95424e6547033a5c3f4207e3 100644 (file)
@@ -5541,7 +5541,7 @@ static int s2io_ethtool_set_led(struct net_device *dev,
        switch (state) {
        case ETHTOOL_ID_ACTIVE:
                sp->adapt_ctrl_org = readq(&bar0->gpio_control);
-               return -EINVAL;
+               return 1;       /* cycle on/off once per second */
 
        case ETHTOOL_ID_ON:
                s2io_set_led(sp, true);