linux/drivers/net/sfc
Allan, Bruce W fce55922f5 ethtool: allow custom interval for physical identification
When physical identification of an adapter is done by toggling the
mechanism on and off through software utilizing the set_phys_id operation,
it is done with a fixed duration for both on and off states.  Some drivers
may want to set a custom duration for the on/off intervals.  This patch
changes the API so the return code from the driver's entry point when it
is called with ETHTOOL_ID_ACTIVE can specify the frequency at which to
cycle the on/off states, and updates the drivers that have already been
converted to use the new set_phys_id and use the synchronous method for
identifying an adapter.

The physical identification frequency set in the updated drivers is based
on how it was done prior to the introduction of set_phys_id.

Compile tested only.  Also fixes a compiler warning in sfc.

v2: drivers do not return -EINVAL for ETHOOL_ID_ACTIVE
v3: fold patchset into single patch and cleanup per Ben's feedback

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Cc: Ben Hutchings <bhutchings@solarflare.com>
Cc: Sathya Perla <sathya.perla@emulex.com>
Cc: Subbu Seetharaman <subbu.seetharaman@emulex.com>
Cc: Ajit Khaparde <ajit.khaparde@emulex.com>
Cc: Michael Chan <mchan@broadcom.com>
Cc: Eilon Greenstein <eilong@broadcom.com>
Cc: Divy Le Ray <divy@chelsio.com>
Cc: Don Fry <pcnet32@frontier.com>
Cc: Jon Mason <jdmason@kudzu.us>
Cc: Solarflare linux maintainers <linux-net-drivers@solarflare.com>
Cc: Steve Hodgson <shodgson@solarflare.com>
Cc: Stephen Hemminger <shemminger@linux-foundation.org>
Cc: Matt Carlson <mcarlson@broadcom.com>
Acked-by: Jon Mason <jdmason@kudzu.us>
Acked-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2011-04-14 21:15:49 -07:00
..
Kconfig sfc: Add support for SFC9000 family (2) 2009-11-29 17:23:57 -08:00
Makefile sfc: Add support for SFE4003 board and TXC43128 PHY 2010-09-22 13:26:45 -07:00
bitfield.h sfc: Update version, copyright dates, authors 2009-11-29 17:23:58 -08:00
efx.c sfc: Implement generic features interface 2011-04-05 15:00:02 +01:00
efx.h sfc: Update copyright dates 2011-02-28 23:57:24 +00:00
enum.h sfc: Update version, copyright dates, authors 2009-11-29 17:23:58 -08:00
ethtool.c ethtool: allow custom interval for physical identification 2011-04-14 21:15:49 -07:00
falcon.c Fix common misspellings 2011-03-31 11:26:23 -03:00
falcon_boards.c sfc: Update copyright dates 2011-02-28 23:57:24 +00:00
falcon_xmac.c sfc: Update copyright dates 2011-02-28 23:57:24 +00:00
filter.c sfc: Implement hardware acceleration of RFS 2011-02-17 21:00:33 +00:00
filter.h sfc: Generalise filter spec initialisation 2010-12-07 19:11:26 +00:00
io.h sfc: Use write-combining to reduce TX latency 2011-03-04 17:58:42 +00:00
mac.h sfc: make functions static 2010-10-21 03:09:43 -07:00
mcdi.c Fix common misspellings 2011-03-31 11:26:23 -03:00
mcdi.h sfc: Update copyright dates 2011-02-28 23:57:24 +00:00
mcdi_mac.c sfc: Update copyright dates 2011-02-28 23:57:24 +00:00
mcdi_pcol.h Fix common misspellings 2011-03-31 11:26:23 -03:00
mcdi_phy.c Fix common misspellings 2011-03-31 11:26:23 -03:00
mdio_10g.c sfc: Update copyright dates 2011-02-28 23:57:24 +00:00
mdio_10g.h sfc: Update copyright dates 2011-02-28 23:57:24 +00:00
mtd.c sfc: Update copyright dates 2011-02-28 23:57:24 +00:00
net_driver.h Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2011-04-11 13:44:25 -07:00
nic.c sfc: Move test of rx_checksum_enabled from nic.c to rx.c 2011-04-01 22:20:06 +01:00
nic.h sfc: Remove configurable FIFO thresholds for pause frame generation 2011-02-28 23:57:24 +00:00
phy.h sfc: Update copyright dates 2011-02-28 23:57:24 +00:00
qt202x_phy.c sfc: Update copyright dates 2011-02-28 23:57:24 +00:00
regs.h sfc: Update copyright dates 2011-02-28 23:57:24 +00:00
rx.c sfc: Implement generic features interface 2011-04-05 15:00:02 +01:00
selftest.c sfc: Update copyright dates 2011-02-28 23:57:24 +00:00
selftest.h sfc: Update copyright dates 2011-02-28 23:57:24 +00:00
siena.c sfc: Remove configurable FIFO thresholds for pause frame generation 2011-02-28 23:57:24 +00:00
spi.h sfc: Update copyright dates 2011-02-28 23:57:24 +00:00
tenxpress.c sfc: Update copyright dates 2011-02-28 23:57:24 +00:00
tx.c sfc: Update copyright dates 2011-02-28 23:57:24 +00:00
txc43128_phy.c sfc: Update copyright dates 2011-02-28 23:57:24 +00:00
workarounds.h sfc: Siena: Disable write-combining when SR-IOV is enabled 2011-03-23 01:35:15 +00:00