linux/drivers/net/cxgb3
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
..
adapter.h cxgb3: function namespace cleanup 2010-10-21 07:19:02 -07:00
ael1002.c drivers/net/*/: Use static const 2010-12-21 02:16:10 -08:00
aq100x.c cxgb3: AQ100X phy support update 2009-07-08 10:54:18 -07:00
common.h cxgb3: function namespace cleanup 2010-10-21 07:19:02 -07:00
cxgb3_ctl_defs.h
cxgb3_defs.h cxgb3: function namespace cleanup 2010-10-21 07:19:02 -07:00
cxgb3_ioctl.h
cxgb3_main.c ethtool: allow custom interval for physical identification 2011-04-14 21:15:49 -07:00
cxgb3_offload.c net: make dev->master general 2011-02-13 10:42:07 -08:00
cxgb3_offload.h RDMA/cxgb3: Doorbell overflow avoidance and recovery 2010-02-24 10:40:28 -08:00
firmware_exports.h
l2t.c drivers/net: Remove unnecessary returns from void function()s 2010-05-14 00:19:28 -07:00
l2t.h
Makefile cxgb3: add support for the Aquantia 10G-BT phy 2009-05-29 15:55:05 -07:00
mc5.c tree-wide: fix comment/printk typos 2010-11-01 15:38:34 -04:00
regs.h cxgb3: Add register bit definition for Fatal Parity Error. 2010-09-03 10:03:50 -07:00
sge_defs.h
sge.c Fix common misspellings 2011-03-31 11:26:23 -03:00
t3_cpl.h
t3_hw.c Fix common misspellings 2011-03-31 11:26:23 -03:00
t3cdev.h
version.h cxgb3: request 7.10 firmware 2010-06-25 21:33:13 -07:00
vsc8211.c cxgb3: Use generic MDIO definitions and mdio_mii_ioctl() 2009-04-29 17:32:32 -07:00
xgmac.c net: convert multicast list to list_head 2010-04-03 14:22:15 -07:00