[Intel-wired-lan] [PATCH -v2] drivers: net: ethernet: intel: e1000e: fix ethtool autoneg off for non-copper
Brown, Aaron F
aaron.f.brown at intel.com
Sat Apr 9 01:03:50 UTC 2016
> From: netdev-owner at vger.kernel.org [mailto:netdev-
> owner at vger.kernel.org] On Behalf Of Daniel Walker
> Sent: Tuesday, April 5, 2016 11:30 AM
> To: Ruinskiy, Dima <dima.ruinskiy at intel.com>; Kirsher, Jeffrey T
> <jeffrey.t.kirsher at intel.com>; Brandeburg, Jesse
> <jesse.brandeburg at intel.com>; Nelson, Shannon
> <shannon.nelson at intel.com>; Wyborny, Carolyn
> <carolyn.wyborny at intel.com>; Skidmore, Donald C
> <donald.c.skidmore at intel.com>; Allan, Bruce W <bruce.w.allan at intel.com>;
> Ronciak, John <john.ronciak at intel.com>; Williams, Mitch A
> <mitch.a.williams at intel.com>
> Cc: Steve Shih <sshih at cisco.com>; xe-kernel at external.cisco.com; Daniel
> Walker <dwalker at fifo99.com>; intel-wired-lan at lists.osuosl.org;
> netdev at vger.kernel.org; linux-kernel at vger.kernel.org
> Subject: [PATCH -v2] drivers: net: ethernet: intel: e1000e: fix ethtool autoneg
> off for non-copper
>
> From: Steve Shih <sshih at cisco.com>
>
> This patch fixes the issues for disabling auto-negotiation and forcing
> speed and duplex settings for the non-copper media.
>
> For non-copper media, e1000_get_settings should return
> ETH_TP_MDI_INVALID for
> eth_tp_mdix_ctrl instead of ETH_TP_MDI_AUTO so subsequent
> e1000_set_settings
> call would not fail with -EOPNOTSUPP.
>
> e1000_set_spd_dplx should not automatically turn autoneg back on for
> forced
> 1000 Mbps full duplex settings for non-copper media.
>
> Cc: xe-kernel at external.cisco.com
> Cc: Daniel Walker <dwalker at fifo99.com>
> Signed-off-by: Steve Shih <sshih at cisco.com>
> ---
> drivers/net/ethernet/intel/e1000e/ethtool.c | 11 +++++++++--
> 1 file changed, 9 insertions(+), 2 deletions(-)
Tested-by: Aaron Brown <aaron.f.brown at intel.com>
More information about the Intel-wired-lan
mailing list