From patchwork Fri May 8 12:31:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 226103 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E9C95C47247 for ; Fri, 8 May 2020 13:19:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B844E206B9 for ; Fri, 8 May 2020 13:19:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588943972; bh=DvjZJjC6hXBataYmPYgmjY2MhEvL1FcSHqgk5n3/LY8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=qBSRLBxlGr/HujgFTuYbVhNhjHWC3QGYIj7YO4wwnsTRre8op5aCRl4aTjeSL42tQ baPKfESK0FB/08+9RZ3+AB8tMf5hof6QNITEdyLoluau7qK1Gg8mKgfBAnVRevHkeX WfU+H0X/DB1rmvpRnVE18SJhtKtsAm1yqMn0Iefc= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728902AbgEHMmE (ORCPT ); Fri, 8 May 2020 08:42:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:38296 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728895AbgEHMmD (ORCPT ); Fri, 8 May 2020 08:42:03 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4030C2496A; Fri, 8 May 2020 12:42:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588941722; bh=DvjZJjC6hXBataYmPYgmjY2MhEvL1FcSHqgk5n3/LY8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jf1tj9grcAoFGLgNlj24LIiSzWKYFpPmep84C2+OWlz4MosBofDf3FH06R6gOceDP I6n57RUX0DF7XZhdlH/UEj6cdlvtSVZcqZ0AulIbSHS42lJ64ArPAWxLVnyieO5c/A PWg9VesdWiJn7oYw2FClOONDJ5h/NxhIcWfQlaAM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ido Schimmel , Jiri Pirko , "David S. Miller" Subject: [PATCH 4.4 108/312] mlxsw: spectrum: Indicate support for autonegotiation Date: Fri, 8 May 2020 14:31:39 +0200 Message-Id: <20200508123132.089687441@linuxfoundation.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200508123124.574959822@linuxfoundation.org> References: <20200508123124.574959822@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Ido Schimmel 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 Signed-off-by: Jiri Pirko Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- 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);