diff options
Diffstat (limited to 'drivers/net/sfc/ethtool.c')
-rw-r--r-- | drivers/net/sfc/ethtool.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/sfc/ethtool.c b/drivers/net/sfc/ethtool.c index 644f7c1d6e7b..5d8468fc5804 100644 --- a/drivers/net/sfc/ethtool.c +++ b/drivers/net/sfc/ethtool.c | |||
@@ -182,7 +182,7 @@ static int efx_ethtool_phys_id(struct net_device *net_dev, | |||
182 | enum ethtool_phys_id_state state) | 182 | enum ethtool_phys_id_state state) |
183 | { | 183 | { |
184 | struct efx_nic *efx = netdev_priv(net_dev); | 184 | struct efx_nic *efx = netdev_priv(net_dev); |
185 | enum efx_led_mode mode; | 185 | enum efx_led_mode mode = EFX_LED_DEFAULT; |
186 | 186 | ||
187 | switch (state) { | 187 | switch (state) { |
188 | case ETHTOOL_ID_ON: | 188 | case ETHTOOL_ID_ON: |
@@ -194,8 +194,8 @@ static int efx_ethtool_phys_id(struct net_device *net_dev, | |||
194 | case ETHTOOL_ID_INACTIVE: | 194 | case ETHTOOL_ID_INACTIVE: |
195 | mode = EFX_LED_DEFAULT; | 195 | mode = EFX_LED_DEFAULT; |
196 | break; | 196 | break; |
197 | default: | 197 | case ETHTOOL_ID_ACTIVE: |
198 | return -EINVAL; | 198 | return 1; /* cycle on/off once per second */ |
199 | } | 199 | } |
200 | 200 | ||
201 | efx->type->set_id_led(efx, mode); | 201 | efx->type->set_id_led(efx, mode); |