net: preserve ifreq parameter when calling generic phy_mii_ioctl().
authorRichard Cochran <richardcochran@gmail.com>
Sat, 17 Jul 2010 08:48:55 +0000 (08:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Jul 2010 02:15:25 +0000 (19:15 -0700)
commit28b041139e344ecd0f144d6205b004ae354cfa1e
tree7fc0e05d01717da0410a7b3252b0cac3fc8db81d
parent4507a71507d4ff37e9a499c4241b7701ed1feab4
net: preserve ifreq parameter when calling generic phy_mii_ioctl().

The phy_mii_ioctl() function unnecessarily throws away the original ifreq.
We need access to the ifreq in order to support PHYs that can perform
hardware time stamping.

Two maverick drivers filter the ioctl commands passed to phy_mii_ioctl().
This is unnecessary since phylib will check the command in any case.

Signed-off-by: Richard Cochran <richard.cochran@omicron.at>
Signed-off-by: David S. Miller <davem@davemloft.net>
25 files changed:
drivers/net/arm/ixp4xx_eth.c
drivers/net/au1000_eth.c
drivers/net/bcm63xx_enet.c
drivers/net/cpmac.c
drivers/net/dnet.c
drivers/net/ethoc.c
drivers/net/fec.c
drivers/net/fec_mpc52xx.c
drivers/net/fs_enet/fs_enet-main.c
drivers/net/gianfar.c
drivers/net/macb.c
drivers/net/mv643xx_eth.c
drivers/net/octeon/octeon_mgmt.c
drivers/net/phy/phy.c
drivers/net/sb1250-mac.c
drivers/net/sh_eth.c
drivers/net/smsc911x.c
drivers/net/smsc9420.c
drivers/net/stmmac/stmmac_main.c
drivers/net/tc35815.c
drivers/net/tg3.c
drivers/net/ucc_geth.c
drivers/staging/octeon/ethernet-mdio.c
include/linux/phy.h
net/dsa/slave.c