]> Pileus Git - ~andy/linux/blobdiff - drivers/net/ewrk3.c
ethtool: allow custom interval for physical identification
[~andy/linux] / drivers / net / ewrk3.c
index c7ce4438e9238d817f78a5b21383214443ef43b2..17b6027d8be8a8231bbb6366040cbb8205c49d8b 100644 (file)
@@ -1618,7 +1618,7 @@ static int ewrk3_set_phys_id(struct net_device *dev,
                /* Prevent ISR from twiddling the LED */
                lp->led_mask = 0;
                spin_unlock_irq(&lp->hw_lock);
-               return -EINVAL;
+               return 2;       /* cycle on/off twice per second */
 
        case ETHTOOL_ID_ON:
                cr = inb(EWRK3_CR);