diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2008-12-13 00:43:33 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-13 00:57:57 -0500 |
commit | f31a45d2f45a7667acd6e85ab6613b0910c55ea9 (patch) | |
tree | 0462d02420800b22af5291db8a210888da9e2683 /drivers/net/sfc/falcon.c | |
parent | 5005087728e37db133fee05bb0923c50e673ae99 (diff) |
sfc: Remove MII extension cruft
Replace efx_nic::link_options bitfield with link_speed (speed in
Mbit/s) and link_fd (full duplex flag).
Remove broken auto-negotiation functions.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc/falcon.c')
-rw-r--r-- | drivers/net/sfc/falcon.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/drivers/net/sfc/falcon.c b/drivers/net/sfc/falcon.c index 97cc037a10c5..448bba9eed09 100644 --- a/drivers/net/sfc/falcon.c +++ b/drivers/net/sfc/falcon.c | |||
@@ -15,11 +15,11 @@ | |||
15 | #include <linux/seq_file.h> | 15 | #include <linux/seq_file.h> |
16 | #include <linux/i2c.h> | 16 | #include <linux/i2c.h> |
17 | #include <linux/i2c-algo-bit.h> | 17 | #include <linux/i2c-algo-bit.h> |
18 | #include <linux/mii.h> | ||
18 | #include "net_driver.h" | 19 | #include "net_driver.h" |
19 | #include "bitfield.h" | 20 | #include "bitfield.h" |
20 | #include "efx.h" | 21 | #include "efx.h" |
21 | #include "mac.h" | 22 | #include "mac.h" |
22 | #include "gmii.h" | ||
23 | #include "spi.h" | 23 | #include "spi.h" |
24 | #include "falcon.h" | 24 | #include "falcon.h" |
25 | #include "falcon_hwdefs.h" | 25 | #include "falcon_hwdefs.h" |
@@ -1915,14 +1915,12 @@ void falcon_reconfigure_mac_wrapper(struct efx_nic *efx) | |||
1915 | int link_speed; | 1915 | int link_speed; |
1916 | bool tx_fc; | 1916 | bool tx_fc; |
1917 | 1917 | ||
1918 | if (efx->link_options & GM_LPA_10000) | 1918 | switch (efx->link_speed) { |
1919 | link_speed = 0x3; | 1919 | case 10000: link_speed = 3; break; |
1920 | else if (efx->link_options & GM_LPA_1000) | 1920 | case 1000: link_speed = 2; break; |
1921 | link_speed = 0x2; | 1921 | case 100: link_speed = 1; break; |
1922 | else if (efx->link_options & GM_LPA_100) | 1922 | default: link_speed = 0; break; |
1923 | link_speed = 0x1; | 1923 | } |
1924 | else | ||
1925 | link_speed = 0x0; | ||
1926 | /* MAC_LINK_STATUS controls MAC backpressure but doesn't work | 1924 | /* MAC_LINK_STATUS controls MAC backpressure but doesn't work |
1927 | * as advertised. Disable to ensure packets are not | 1925 | * as advertised. Disable to ensure packets are not |
1928 | * indefinitely held and TX queue can be flushed at any point | 1926 | * indefinitely held and TX queue can be flushed at any point |