From patchwork Mon Apr 12 12:16:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Bornyakov X-Patchwork-Id: 12197883 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=-11.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham 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 5E75FC433B4 for ; Mon, 12 Apr 2021 12:21:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3B66D61357 for ; Mon, 12 Apr 2021 12:21:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240365AbhDLMV0 (ORCPT ); Mon, 12 Apr 2021 08:21:26 -0400 Received: from mail.pr-group.ru ([178.18.215.3]:50834 "EHLO mail.pr-group.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238720AbhDLMVZ (ORCPT ); Mon, 12 Apr 2021 08:21:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=metrotek.ru; s=mail; h=from:subject:date:message-id:to:cc:mime-version:content-transfer-encoding; bh=4+hOEbabYeWB61G/f7BMXIZpqriitfA8fo4sgdlsFRA=; b=aVWie3uFpfjJE182ykHUWaR/yANcpgBVnqL/ximYM/kifvOY3ZKGFrknHu8yhYmN988lxbY3kP38G hXJ1tCfBSad/HR/s0lHd+yyTxxcAzeXCx8Z04t3o2zudowCXEPpO88+yPlOo/Ty+647RanuNG/vnZ6 NHcWtXMhyaLibApvkSFytQiXRZb17ybkm4rphJO0NxhDYa30OCY1OUsmuuQR/J+s8UH1RzcGzyx2Dm wHaRmilJrqbGuxzSRDh6tBfa4gO13a8y60JR+lqo0oFRXH6jWwsfMpOZrytfVkHRp2g8JiDWY7VYZG YKa/Wn6qjtx2M0icHspYZsSLTmp0nLg== X-Footer: bWV0cm90ZWsucnU= Received: from localhost.localdomain ([178.70.223.189]) (authenticated user i.bornyakov@metrotek.ru) by mail.pr-group.ru with ESMTPSA (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256 bits)); Mon, 12 Apr 2021 15:20:50 +0300 From: Ivan Bornyakov Cc: Ivan Bornyakov , system@metrotek.ru, andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 0/2] net: phy: marvell-88x2222: a couple of improvements Date: Mon, 12 Apr 2021 15:16:58 +0300 Message-Id: X-Mailer: git-send-email 2.26.3 MIME-Version: 1.0 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org First, there are some SFP modules that only uses RX_LOS for link indication. Add check that SFP link is operational before actual read of link status. Second, it is invalid to set 10G speed without autonegotiation, according to phy_ethtool_ksettings_set(). Implement switching between 10GBase-R and 1000Base-X/SGMII if autonegotiation can't complete but there is signal in line. Ivan Bornyakov (2): net: phy: marvell-88x2222: check that link is operational net: phy: marvell-88x2222: swap 1G/10G modes on autoneg drivers/net/phy/marvell-88x2222.c | 296 +++++++++++++++++++----------- 1 file changed, 191 insertions(+), 105 deletions(-)