Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp3276091pxb; Wed, 14 Apr 2021 01:15:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9SA6wQZy+gaxjI8Ru5440FYapINaX1npmrlFCwRN2+5VklPS9euhfdmyuA9J+coLgsA2H X-Received: by 2002:a17:90a:db15:: with SMTP id g21mr2202465pjv.113.1618388142154; Wed, 14 Apr 2021 01:15:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618388142; cv=none; d=google.com; s=arc-20160816; b=ryrnJzIY9ZmL8j0h2kjj8NuTzUoT5Xm0APeo9CMrm1FG07xFlBbasUUSC+/NKTUwLp AoYaIH3CRJOeI+oRfJJYJT2sYP3hGumCoe5WlV1Fb5TEH1dLNKk864nYb5FeUI9DmFcF A7OvVQOxMl2MrHuqUBw1vtzuX1loJJSWEtvuMaIKbnuQN0Wkxop5de3bE3mn3tQGQTw7 uw7sh+4oI3npQsLB4YBGwrU5YF9NiIGg4JsDdRoifkVep+tRjZzK62ozGVznDT76Zn0+ SWsHJQo4axd2e70BmFp3QLNJCU6rWBP89mGmPGrVN02GC8K/X2pIuXxKPui6z71RrOEF dlhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=JwpR1PIxg8Fj1cC2PBnRKSrzyvwUIm3dtVbdqIVhmgE=; b=qbVwFKooZS9dCReFaaj+7tvur/ckDbAtgMdqjnZJLQQnNZPMoM/y5WoKD+xv1A+5WB wYMrkkFKtE/OcOc5xiuv04J13uT4abk4HC3K49X3F51YkIrGRAyWxy4KGeqJWACtZ96T vl5hbRO9fUGSozJti6I/WXkHKvth83wAJntOvtmZOjeD9nmg6klVGxPfW0p6D7dmNo8b w25A833PhJK+JJ8MpjeCoqjK/+iSdOBleiyfY7JJG0M4e8E+A7ERi/398K/4T1dua/PA sbfU/61vYo3v7l+4A6C5HxfY78M+ZEDjOfeamNSzjuTpum4eq/huVEC6ZA3dMFxoSBwG BglQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@metrotek.ru header.s=mail header.b=KMu1XsZW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g20si4430474plg.237.2021.04.14.01.15.30; Wed, 14 Apr 2021 01:15:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@metrotek.ru header.s=mail header.b=KMu1XsZW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237130AbhDMU7R (ORCPT + 99 others); Tue, 13 Apr 2021 16:59:17 -0400 Received: from mail.pr-group.ru ([178.18.215.3]:59156 "EHLO mail.pr-group.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232384AbhDMU7M (ORCPT ); Tue, 13 Apr 2021 16:59:12 -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=mgAretnIroX4eSjdE/I0qmhIN5UwcipFxlDQmSZMIr4=; b=KMu1XsZWszr9DpTmttTMMIfL2stkV0KcYzKR3mXrW7ACwSb081gT/ht4ivsNvyWubRX8gnW7sdaa2 3RU04gqAISCfvl5AMMfY+y0nHMEyIo1HEQORuxi2f9oIxrBqgcR+bDWNtMlIjEDl9J2vdg38gFM5Jq ToJnRpGJfiLCGvcKGSeDdT2pkUIAXy7rhvy4dFTIvcOvchoXx+LsL/mAOBuSCExrnFNdpiq07RNBr6 Xkh98aI3WeRY9nCJWtIPJ/4a2/B2soLnOFBMoeIEGeEVPrV/yaI3yVcMUbzAP+Z3O1amqSbbc8+Q4/ ewesZbY/B0la0NGsNSq88iVdiy1cRIQ== X-Spam-Status: No, hits=0.0 required=3.4 tests=AWL: 0.000, BAYES_00: -1.665, CUSTOM_RULE_FROM: ALLOW, TOTAL_SCORE: -1.665,autolearn=ham X-Spam-Level: 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)); Tue, 13 Apr 2021 23:58:34 +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 v2 0/3] net: phy: marvell-88x2222: a couple of improvements Date: Tue, 13 Apr 2021 23:54:49 +0300 Message-Id: X-Mailer: git-send-email 2.26.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org First, there are some SFP modules that only uses RX_LOS for link indication. Add check that link is operational before actual read of line-side 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. Changelog: v1 -> v2: * make checking that link is operational more friendly for trancievers without SFP cages. * split swapping 1G/10G modes into non-functional and functional commits for the sake of easier review. Ivan Bornyakov (3): net: phy: marvell-88x2222: check that link is operational net: phy: marvell-88x2222: move read_status after config_aneg net: phy: marvell-88x2222: swap 1G/10G modes on autoneg drivers/net/phy/marvell-88x2222.c | 314 ++++++++++++++++++++---------- 1 file changed, 209 insertions(+), 105 deletions(-) -- 2.26.3