]> Pileus Git - ~andy/linux/blobdiff - drivers/net/cxgb3/cxgb3_main.c
ethtool: allow custom interval for physical identification
[~andy/linux] / drivers / net / cxgb3 / cxgb3_main.c
index 802c7a7c3b255662be0fc5017df092ed52526b8b..a087e0691dcedce2ab550a85c82c9ab996c3432f 100644 (file)
@@ -1757,7 +1757,7 @@ static int set_phys_id(struct net_device *dev,
 
        switch (state) {
        case ETHTOOL_ID_ACTIVE:
-               return -EINVAL;
+               return 1;       /* cycle on/off once per second */
 
        case ETHTOOL_ID_OFF:
                t3_set_reg_field(adapter, A_T3DBG_GPIO_EN, F_GPIO0_OUT_VAL, 0);