lkml.org 
[lkml]   [2020]   [May]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.4 108/312] mlxsw: spectrum: Indicate support for autonegotiation
    Date
    From: Ido Schimmel <idosch@mellanox.com>

    commit c3f1576810affced47684e04a08c1ffa845144c9 upstream.

    The device supports link autonegotiation, so let the user know about it
    by indicating support via ethtool ops.

    Fixes: 56ade8fe3fe1 ("mlxsw: spectrum: Add initial support for Spectrum ASIC")
    Signed-off-by: Ido Schimmel <idosch@mellanox.com>
    Signed-off-by: Jiri Pirko <jiri@mellanox.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 3 ++-
    1 file changed, 2 insertions(+), 1 deletion(-)

    --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum.c
    +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum.c
    @@ -1104,7 +1104,8 @@ static int mlxsw_sp_port_get_settings(st

    cmd->supported = mlxsw_sp_from_ptys_supported_port(eth_proto_cap) |
    mlxsw_sp_from_ptys_supported_link(eth_proto_cap) |
    - SUPPORTED_Pause | SUPPORTED_Asym_Pause;
    + SUPPORTED_Pause | SUPPORTED_Asym_Pause |
    + SUPPORTED_Autoneg;
    cmd->advertising = mlxsw_sp_from_ptys_advert_link(eth_proto_admin);
    mlxsw_sp_from_ptys_speed_duplex(netif_carrier_ok(dev),
    eth_proto_oper, cmd);

    \
     
     \ /
      Last update: 2020-05-08 14:43    [W:3.192 / U:0.332 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site