diff options
author | François Cachereul <f.cachereul@alphalink.fr> | 2014-06-12 06:11:25 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-06-12 13:31:10 -0400 |
commit | 179584388d7286190dfd9d2a248e25e1ffdfd472 (patch) | |
tree | f3af89abee1feb269df6d92ad222ce0caa0f3307 /drivers/net/ethernet/via | |
parent | a4d3de0d5fdf4393577ab8e2c7b7ebf6504bbb66 (diff) |
via-rhine: fix full-duplex with autoneg disable
With some specific configuration (VT6105M on Soekris 5510 and depending
on the device at the other end), fragmented packets were not transmitted
when forcing 100 full-duplex with autoneg disable.
This fix now write full-duplex chips register when forcing full or
half-duplex not only when autoneg is enable.
Signed-off-by: François Cachereul <f.cachereul@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/via')
-rw-r--r-- | drivers/net/ethernet/via/via-rhine.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/ethernet/via/via-rhine.c b/drivers/net/ethernet/via/via-rhine.c index 981be0154be3..2d72f96a9e2c 100644 --- a/drivers/net/ethernet/via/via-rhine.c +++ b/drivers/net/ethernet/via/via-rhine.c | |||
@@ -1349,8 +1349,9 @@ static void rhine_set_carrier(struct mii_if_info *mii) | |||
1349 | /* autoneg is off: Link is always assumed to be up */ | 1349 | /* autoneg is off: Link is always assumed to be up */ |
1350 | if (!netif_carrier_ok(dev)) | 1350 | if (!netif_carrier_ok(dev)) |
1351 | netif_carrier_on(dev); | 1351 | netif_carrier_on(dev); |
1352 | } else /* Let MMI library update carrier status */ | 1352 | } |
1353 | rhine_check_media(dev, 0); | 1353 | |
1354 | rhine_check_media(dev, 0); | ||
1354 | 1355 | ||
1355 | netif_info(rp, link, dev, "force_media %d, carrier %d\n", | 1356 | netif_info(rp, link, dev, "force_media %d, carrier %d\n", |
1356 | mii->force_media, netif_carrier_ok(dev)); | 1357 | mii->force_media, netif_carrier_ok(dev)); |