diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2012-02-29 09:26:22 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-03-01 16:41:26 -0500 |
commit | 9c4df53bc3f9c72d7f1f1226927f456d46412381 (patch) | |
tree | 93bc7536bcf1cac679fc150d0cd88b9e21e5ed17 /drivers/net/mdio.c | |
parent | 9c717758c9289331e22c88ef69d8c248def9cd29 (diff) |
ethtool, mdio, mii: Specify MDIO information fields in struct ethtool_cmd
Add comments for ethtool_cmd::phy_address and
ethtool_cmd::mdio_support, and definitions of the flags currently
used in mdio_support.
In the mdio library, assert that its own flags continue to match those
in the ethtool interface.
In the mii library, use the ethtool flag definition and stop
including <linux/mdio.h>.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/mdio.c')
-rw-r--r-- | drivers/net/mdio.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/mdio.c b/drivers/net/mdio.c index 16fbb11d92ac..8403316eb02b 100644 --- a/drivers/net/mdio.c +++ b/drivers/net/mdio.c | |||
@@ -190,6 +190,9 @@ void mdio45_ethtool_gset_npage(const struct mdio_if_info *mdio, | |||
190 | int reg; | 190 | int reg; |
191 | u32 speed; | 191 | u32 speed; |
192 | 192 | ||
193 | BUILD_BUG_ON(MDIO_SUPPORTS_C22 != ETH_MDIO_SUPPORTS_C22); | ||
194 | BUILD_BUG_ON(MDIO_SUPPORTS_C45 != ETH_MDIO_SUPPORTS_C45); | ||
195 | |||
193 | ecmd->transceiver = XCVR_INTERNAL; | 196 | ecmd->transceiver = XCVR_INTERNAL; |
194 | ecmd->phy_address = mdio->prtad; | 197 | ecmd->phy_address = mdio->prtad; |
195 | ecmd->mdio_support = | 198 | ecmd->mdio_support = |