aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sfc/efx.c
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2009-11-23 11:03:45 -0500
committerDavid S. Miller <davem@davemloft.net>2009-11-24 13:58:39 -0500
commit398468ed1b5c61fe8bcbc8cc1ed323e3c23b58ef (patch)
tree2c9f8932143b91d8affe388bd21d98beab7c7488 /drivers/net/sfc/efx.c
parentdcf477b2d205abb8ccdb3b1cb668a0db2de202c0 (diff)
sfc: Use a single blink implementation
Only some PHYs have firmware support for a LED blink mode, so we currently blink the others in a timer function. Since all PHYs have simple on and off modes, we don't gain anything by using multiple blink implementations. Also, since we have a process context there is no need to use a timer. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc/efx.c')
-rw-r--r--drivers/net/sfc/efx.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/sfc/efx.c b/drivers/net/sfc/efx.c
index 0d0243b7ac34..612cd815088f 100644
--- a/drivers/net/sfc/efx.c
+++ b/drivers/net/sfc/efx.c
@@ -1890,7 +1890,9 @@ int efx_port_dummy_op_int(struct efx_nic *efx)
1890 return 0; 1890 return 0;
1891} 1891}
1892void efx_port_dummy_op_void(struct efx_nic *efx) {} 1892void efx_port_dummy_op_void(struct efx_nic *efx) {}
1893void efx_port_dummy_op_blink(struct efx_nic *efx, bool blink) {} 1893void efx_port_dummy_op_set_id_led(struct efx_nic *efx, enum efx_led_mode mode)
1894{
1895}
1894 1896
1895static struct efx_mac_operations efx_dummy_mac_operations = { 1897static struct efx_mac_operations efx_dummy_mac_operations = {
1896 .reconfigure = efx_port_dummy_op_void, 1898 .reconfigure = efx_port_dummy_op_void,
@@ -1909,9 +1911,8 @@ static struct efx_phy_operations efx_dummy_phy_operations = {
1909static struct efx_board efx_dummy_board_info = { 1911static struct efx_board efx_dummy_board_info = {
1910 .init = efx_port_dummy_op_int, 1912 .init = efx_port_dummy_op_int,
1911 .init_leds = efx_port_dummy_op_void, 1913 .init_leds = efx_port_dummy_op_void,
1912 .set_id_led = efx_port_dummy_op_blink, 1914 .set_id_led = efx_port_dummy_op_set_id_led,
1913 .monitor = efx_port_dummy_op_int, 1915 .monitor = efx_port_dummy_op_int,
1914 .blink = efx_port_dummy_op_blink,
1915 .fini = efx_port_dummy_op_void, 1916 .fini = efx_port_dummy_op_void,
1916}; 1917};
1917 1918