linux/arch/mips
David Decotigny 8ae6daca85 ethtool: Call ethtool's get/set_settings callbacks with cleaned data
This makes sure that when a driver calls the ethtool's
get/set_settings() callback of another driver, the data passed to it
is clean. This guarantees that speed_hi will be zeroed correctly if
the called callback doesn't explicitely set it: we are sure we don't
get a corrupted speed from the underlying driver. We also take care of
setting the cmd field appropriately (ETHTOOL_GSET/SSET).

This applies to dev_ethtool_get_settings(), which now makes sure it
sets up that ethtool command parameter correctly before passing it to
drivers. This also means that whoever calls dev_ethtool_get_settings()
does not have to clean the ethtool command parameter. This function
also becomes an exported symbol instead of an inline.

All drivers visible to make allyesconfig under x86_64 have been
updated.

Signed-off-by: David Decotigny <decot@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2011-04-29 14:01:30 -07:00
..
alchemy Fix common misspellings 2011-03-31 11:26:23 -03:00
ar7 MIPS: Convert the irq functions to the new names 2011-03-29 14:48:07 +02:00
ath79 MIPS: Convert the irq functions to the new names 2011-03-29 14:48:07 +02:00
bcm47xx MIPS: BCM47xx: Swap serial console if ttyS1 was specified. 2010-12-16 18:11:00 +00:00
bcm63xx MIPS: Convert the irq functions to the new names 2011-03-29 14:48:07 +02:00
boot Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/upstream-linus 2010-10-18 13:10:36 -07:00
cavium-octeon Fix common misspellings 2011-03-31 11:26:23 -03:00
cobalt MIPS: Move Cobalt Makefile parts to their own Platform file 2010-08-05 13:25:47 +01:00
configs kconfig: rename CONFIG_EMBEDDED to CONFIG_EXPERT 2011-01-20 17:02:05 -08:00
dec MIPS: Convert the irq functions to the new names 2011-03-29 14:48:07 +02:00
emma MIPS: Convert the irq functions to the new names 2011-03-29 14:48:07 +02:00
fw Fix common misspellings 2011-03-31 11:26:23 -03:00
include/asm Fix common misspellings 2011-03-31 11:26:23 -03:00
jazz MIPS: Convert the irq functions to the new names 2011-03-29 14:48:07 +02:00
jz4740 Fix common misspellings 2011-03-31 11:26:23 -03:00
kernel Fix common misspellings 2011-03-31 11:26:23 -03:00
lasat MIPS: Convert the irq functions to the new names 2011-03-29 14:48:07 +02:00
lib Fix common misspellings 2011-03-31 11:26:23 -03:00
loongson MIPS: Convert the irq functions to the new names 2011-03-29 14:48:07 +02:00
math-emu Fix common misspellings 2011-03-31 11:26:23 -03:00
mipssim MIPS: SMTC: Move declaration of smtc_init_secondary to <asm/smtc.h>. 2011-03-25 18:45:13 +01:00
mm Fix common misspellings 2011-03-31 11:26:23 -03:00
mti-malta Fix common misspellings 2011-03-31 11:26:23 -03:00
nxp/pnx8550/common MIPS: PNX8550: Move code one directory level up. 2010-08-05 13:25:56 +01:00
oprofile mips: change to new flag variable 2011-03-17 14:02:56 +01:00
pci Fix common misspellings 2011-03-31 11:26:23 -03:00
pmc-sierra Fix common misspellings 2011-03-31 11:26:23 -03:00
pnx833x Fix common misspellings 2011-03-31 11:26:23 -03:00
pnx8550 MIPS: Convert the irq functions to the new names 2011-03-29 14:48:07 +02:00
power MIPS: Loongson: Change the Email address of Wu Zhangjin 2010-02-27 12:53:12 +01:00
powertv MIPS: Convert the irq functions to the new names 2011-03-29 14:48:07 +02:00
rb532 MIPS: Convert the irq functions to the new names 2011-03-29 14:48:07 +02:00
sgi-ip22 MIPS: Convert the irq functions to the new names 2011-03-29 14:48:07 +02:00
sgi-ip27 Fix common misspellings 2011-03-31 11:26:23 -03:00
sgi-ip32 MIPS: Convert the irq functions to the new names 2011-03-29 14:48:07 +02:00
sibyte MIPS: Convert the irq functions to the new names 2011-03-29 14:48:07 +02:00
sni MIPS: Convert the irq functions to the new names 2011-03-29 14:48:07 +02:00
txx9 ethtool: Call ethtool's get/set_settings callbacks with cleaned data 2011-04-29 14:01:30 -07:00
vr41xx mips: vr41xx: Use irdq_irq_disabled() 2011-03-29 14:48:07 +02:00
wrppmc MIPS: WRPPMC: Migrate to new platform makefile style. 2010-08-05 13:25:51 +01:00
Kbuild MIPS: Repair Kbuild make clean breakage. 2010-10-19 18:32:39 +01:00
Kbuild.platforms MIPS: Add initial support for the Atheros AR71XX/AR724X/AR931X SoCs 2011-01-18 19:30:24 +01:00
Kconfig Fix common misspellings 2011-03-31 11:26:23 -03:00
Kconfig.debug kconfig: rename CONFIG_EMBEDDED to CONFIG_EXPERT 2011-01-20 17:02:05 -08:00
Makefile Fix common misspellings 2011-03-31 11:26:23 -03:00