diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2008-12-13 00:44:14 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-13 00:57:58 -0500 |
commit | 27dd2caca4eabe7c13a052b7456495ba75535e6a (patch) | |
tree | 514e7844ab78e5110e09d1e4a650e3283cdd32e9 /drivers/net/sfc/xfp_phy.c | |
parent | f31a45d2f45a7667acd6e85ab6613b0910c55ea9 (diff) |
sfc: Add support for MMDs numbered >15
Combine DEVS0 and DEVS1 registers into a 32-bit mask instead of
reading just DEVS0.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc/xfp_phy.c')
-rw-r--r-- | drivers/net/sfc/xfp_phy.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/sfc/xfp_phy.c b/drivers/net/sfc/xfp_phy.c index 971a24b59fa..0413d135e4a 100644 --- a/drivers/net/sfc/xfp_phy.c +++ b/drivers/net/sfc/xfp_phy.c | |||
@@ -19,9 +19,9 @@ | |||
19 | #include "phy.h" | 19 | #include "phy.h" |
20 | #include "mac.h" | 20 | #include "mac.h" |
21 | 21 | ||
22 | #define XFP_REQUIRED_DEVS (MDIO_MMDREG_DEVS0_PCS | \ | 22 | #define XFP_REQUIRED_DEVS (MDIO_MMDREG_DEVS_PCS | \ |
23 | MDIO_MMDREG_DEVS0_PMAPMD | \ | 23 | MDIO_MMDREG_DEVS_PMAPMD | \ |
24 | MDIO_MMDREG_DEVS0_PHYXS) | 24 | MDIO_MMDREG_DEVS_PHYXS) |
25 | 25 | ||
26 | #define XFP_LOOPBACKS ((1 << LOOPBACK_PCS) | \ | 26 | #define XFP_LOOPBACKS ((1 << LOOPBACK_PCS) | \ |
27 | (1 << LOOPBACK_PMAPMD) | \ | 27 | (1 << LOOPBACK_PMAPMD) | \ |
@@ -64,7 +64,7 @@ static int xfp_reset_phy(struct efx_nic *efx) | |||
64 | /* Check that all the MMDs we expect are present and responding. We | 64 | /* Check that all the MMDs we expect are present and responding. We |
65 | * expect faults on some if the link is down, but not on the PHY XS */ | 65 | * expect faults on some if the link is down, but not on the PHY XS */ |
66 | rc = mdio_clause45_check_mmds(efx, XFP_REQUIRED_DEVS, | 66 | rc = mdio_clause45_check_mmds(efx, XFP_REQUIRED_DEVS, |
67 | MDIO_MMDREG_DEVS0_PHYXS); | 67 | MDIO_MMDREG_DEVS_PHYXS); |
68 | if (rc < 0) | 68 | if (rc < 0) |
69 | goto fail; | 69 | goto fail; |
70 | 70 | ||