sfc: Add efx_nic_type operation for identity LED control
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
0aa3fbaa3f
commit
06629f0724
3 changed files with 12 additions and 3 deletions
|
@ -174,14 +174,14 @@ static int efx_ethtool_phys_id(struct net_device *net_dev, u32 count)
|
|||
struct efx_nic *efx = netdev_priv(net_dev);
|
||||
|
||||
do {
|
||||
falcon_board(efx)->type->set_id_led(efx, EFX_LED_ON);
|
||||
efx->type->set_id_led(efx, EFX_LED_ON);
|
||||
schedule_timeout_interruptible(HZ / 2);
|
||||
|
||||
falcon_board(efx)->type->set_id_led(efx, EFX_LED_OFF);
|
||||
efx->type->set_id_led(efx, EFX_LED_OFF);
|
||||
schedule_timeout_interruptible(HZ / 2);
|
||||
} while (!signal_pending(current) && --count != 0);
|
||||
|
||||
falcon_board(efx)->type->set_id_led(efx, EFX_LED_DEFAULT);
|
||||
efx->type->set_id_led(efx, EFX_LED_DEFAULT);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue