linux/drivers/net/ethernet/oki-semi/pch_gbe
Anders Larsen c196ce05cf pch_gbe: ethtool cannot change parameters when link is down
When attempting to change e.g. the advertising mask when the link is down
ecmd->speed is -1 causing mii_ethtool_sset() to bail out.

This bug bit when connecting to a gigabit switch through a 4-pin (industrial)
cable, since link negotiation would not complete (both endpoints claimed to
be gigabit-capable, but this is not possible with only 4 pins).
Any attempt to fix this by setting autonegation to not offer 1000Mbps
failed as the setting would not be accepted while the link was still down...

Set ecmd->speed to SPEED_1000 to satisfy mii_ethtool_sset()
(the actual value of ecmd->speed doesn't matter as long as it is valid,
since a re-negotation is forced afterwards).

Signed-off-by: Anders Larsen <al@alarsen.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-08-20 15:05:04 -07:00
..
Kconfig net: pch_gbe depends on x86 2013-07-22 14:43:30 -07:00
Makefile
pch_gbe_api.c pch_gbe: convert pr_* to netdev_* 2013-06-28 21:37:48 -07:00
pch_gbe_api.h
pch_gbe_ethtool.c pch_gbe: ethtool cannot change parameters when link is down 2013-08-20 15:05:04 -07:00
pch_gbe_main.c pch_gbe: Add MinnowBoard support 2013-07-25 01:31:52 -07:00
pch_gbe_param.c pch_gbe: convert pr_* to netdev_* 2013-06-28 21:37:48 -07:00
pch_gbe_phy.c pch_gbe: Add MinnowBoard support 2013-07-25 01:31:52 -07:00
pch_gbe_phy.h pch_gbe: Add MinnowBoard support 2013-07-25 01:31:52 -07:00
pch_gbe.h pch_gbe: Add MinnowBoard support 2013-07-25 01:31:52 -07:00