Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1724370pxb; Mon, 12 Apr 2021 05:22:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxsL+nq5mqAi1pvjGaVWr5oiVHbnT7+v2DBHxCe9Te/WISFVeXdFx/SaY3WTxJ8nI0uz8ec X-Received: by 2002:a17:906:c9d8:: with SMTP id hk24mr27260630ejb.480.1618230147211; Mon, 12 Apr 2021 05:22:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618230147; cv=none; d=google.com; s=arc-20160816; b=HfK6i/6WSAc6C6jUhaiWVXlgiqKA8iEkIjyxpyacGjEeTUOQAAeNXmk/q+KB6xbDv8 lpNzN47O1AzqYqYlwghJAg5jhZWEHXzPvwTvFCazfFM4dH7lSpmmHq5Tv0Rpyw4WWNx7 5kJFWZqL16DZBq/f15KQCnD/t8yvVAe5xCyxsmrQcnobeS4xN3U+hVrPhlaa69f0yDgE OX9aJzQMgLAkrqm/adpaZP2RL08ZWPZdvCdX+DYDURPvZhu4PnngzVMHd755nX4GJo0v xH++D/QjdDY6ENWb6WAX/0OqarGqr2WRsT56njrWTXJoyxCi/egpK/cuxrsOufWEcKxq NQKw== 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=mfhlmrpk14rAJ5YLfke+/5gyNYHLErsS0XLhRebU/iQ=; b=KZmGP4AflyrDVeVIzgAsq/eSr1kdIASKz1PbplLLoc02YXLoARyepwOJrZYC4WHb39 M96AhpGVvR+FHAG9L+VQ0DTw5/9f1QhzaXrYBKt1JYNdc/U5tvEbTGN1DKrbryUIh+cU sF48mdTEeW96bn/Zm7xdvFpvlJiVyXU3StDbG8MnvBuyBPxyPE8v0adBWTgfzpxmCmPZ TNFzCZ0XHiV+THz1YNU2N9vqvZ5Ss2lYfRRyqF+JryzOAAZ0BZSvJJ4JXKtSWirCqcq3 dCuiM8dwqcMtjpMMlJ/o+uW/bFZMbBBu2uruGIrIDKZo2pj6UKQtT3ftmXrNjRd9wjXX rSOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@metrotek.ru header.s=mail header.b=aVWie3uF; 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 x6si7537867ejb.380.2021.04.12.05.22.02; Mon, 12 Apr 2021 05:22:27 -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=aVWie3uF; 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 S240318AbhDLMV0 (ORCPT + 99 others); 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-Spam-Status: No, hits=0.0 required=3.4 tests=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)); 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 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 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(-) -- 2.26.3