🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #19819

Re: Proposal: per-lane PHY polarity get/set via ethtool PHY tunables

#19819
From: Andrew Lunn
Date: Fri, 20 Nov 2026 13:29
18 lines
8901 bytes
On Fri, Nov 20, 2026 at 12:45:56PM +0000, Doddagoudar, Susheela M wrote:
> Hi All,
> 
> I would like feedback on a proposed ethtool netlink interface for getting and setting 
> the polarity of individual PHY lanes.
> 
> USE CASE
> This helps debug link-up failures caused by swapped lane polarity. A user can read and flip
> the polarity of a lane at runtime to see if the link comes up.

Isn't swapped lanes a hardware problem? The PCB layout is wrong. The
poor person who first brings up the board needs to figure out what the
PCB designed did, but after that it is just Device Tree properties.

I don't see a need for ethtool.

  Andrew
Technical Details
Message-ID: <112154f6-53f9-4cb7-9124-aba263b097b5@lunn.ch>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!3.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367950-linux-kernel-netdev=dewy.ru
References: <BYAPR11MB27105AFF28337302B1493FFFD2782@BYAPR11MB2710.namprd11.prod.outlook.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!3.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367950-linux-kernel-netdev=dewy.ru
From: andrew@lunn.ch (Andrew Lunn)
Newsgroups: linux.kernel.netdev
Subject: Re: Proposal:  per-lane PHY polarity get/set via ethtool PHY tunables
Date: Fri, 20 Nov 2026 14:29:06 +0100
Organization: Usenet Network
Message-ID: <112154f6-53f9-4cb7-9124-aba263b097b5@lunn.ch>
References: <BYAPR11MB27105AFF28337302B1493FFFD2782@BYAPR11MB2710.namprd11.prod.outlook.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network; logging-data="3168454"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:saO/ql882tGq3wxQUHMGxow1ONM= sha256:i2ZOniBZ6e3Ma2/nkSuYAswRHZI9opCpjwil+4SH3dc= sha1:2sYmtyAKEDAc32Doe1j981BlXXw= sha256:1OrDRgWLCBHxKAYvXZOeqptl8e/UKDbQ2LyLSL8LZFw=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 823031159AA; Fri, 20 Nov 2026 16:29:39 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key) header.d=lunn.ch
X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZuE8MerK-SMd; Fri, 20 Nov 2026 16:29:30 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-367950-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lunn.ch
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 1FAE2115995; Fri, 20 Nov 2026 16:29:21 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id CB08F2F19C; Fri, 20 Nov 2026 13:29:17 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795181357; b=4fZuxVyW5pynJzcy+hBh34jCzPs3VmjlUXel/ZH6aFMa8DXC4xhSWA6iyI8plQ7P2TXu KLtVGLPYM0P1hA9QewiHrduuczEOIbnxpddD5FW9ez53Am9ox+tihr3mRDUp52iR3yv6N yzTBrVGF6WQ40LDe0ZeRvqEKOLAAXZ1AC9f1xY+8WrfbefslbewIriVQMgX62L7qwz/uK vQpxvTnDEyo8zYr3PUoC15zcURkyjx26VN0rzYHtXWRvnfHbkTKHbZZ2N3tntPk99caM9 NGfa5kuUUwjPNKXFj6egYXacc5OjPPQzOuUzupPWXo154XuP5xUFOHfvwHeRqYAg2Jw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795181357; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date: From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=9V0wEcz4bwDJK9HLg6xYoGNRiMC7zuqdU6j4swgRUaM=; b=b0LCcfeLApMzQwvXP2opO0j3pfnvsflAuS/VhI4vXv2zcTF8nRgvGdzAkjacgSoKPTHq 5vrg+W8CAglB+EyqQ1mV/c5wgPQxZ/BNc9ZFScVZMpU2NWJyu6kB6dsWZ6OE1rp9qHI63 nZ//A2LWHdHJrc1bJ6YUM9SL/5+jiy97trJObYJv9nJ8BXt30PAORw/Tm/tfUrN9XDzhY 5bjtoa1QQI+jiNQPg0ysxF14XJWDz4elC4QvfMqGBIGOk74kmV6Kp72JulmHhBdEGOn+E bcWsYzRcyF342nmglUzacJyomvUbnw30nkeANOjhIGx4URk7uQLF0IVYW1DeUlWf6Kw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b="TncHJNl/"; dmarc=pass header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 897F9606A33A; Fri, 20 Nov 2026 13:29:17 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=TncHJNl/
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795181356; b=PnUYA9mlbK+sCins390RDuKdK1otORmYPpsYTXdrYQK2WaHEUDOVtLOsMKR09qceq4ik PNHjI8Bh3nASUEuMDAnSiVj7U22hdowH3EPbsMmoQ7BL8N9S0BL66LRV8/1EXYaGxsn4m GBlCQN0W5NWvJ4Ny+ZuFCY0RD/pWre1rDS7PQwlJwYQhg30BFT8W9JpeF1XbuHbQWFC6Y xgIRVJEabhA14TxZr+hDxtq+1+X0K7VSnvLGYZB9Jq++UrvhUP7AkOA9o6oA+UEc5U5v+ IXIJHrLPXiMBL3vTu57JwEi2ILm1UK/F+eukeLthAHkBMKMnmEJgu9C6mTXbv1M1KlA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795181356; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=9V0wEcz4bwDJK9HLg6xYoGNRiMC7zuqdU6j4swgRUaM=; b=s6a3y/qIzqs/Sl5Gs2XAsLeIeF8kas4ipxHrC+QWO/taDO+TTTdDOpCySNasi5ao8jMn rHSzTeglvlOaz3gJXcHUkroy9OADrOYA/JcNtdw2c/XFnh5aYG4jIm4Ibk1GaSO3C9ZLR 4eOQaltmXvCoifPiexAfVdg9mLFfNf4aynkenRy1yXrtEI0xQ54bGqkjNnQauHeiSxMYE d9woUwSf8JBfHpS6gm1l4LetI9/0jtIayy42srs+QC4+bjd3WfaL2ISJl/kEHRaC9b7Cx +WbNe5uNs64DxZVTpffKDLfQM7uw7cLAH8IIX3bSb87CIunrglUX+UfkaV4mB5WzFFg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b="TncHJNl/"; arc=none smtp.remote-ip=156.67.10.101
X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 67EAA606A333 for <netdev@vger.kernel.org>; Fri, 20 Nov 2026 13:29:16 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 67EAA606A333
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch
X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=9V0wEcz4bwDJK9HLg6xYoGNRiMC7zuqdU6j4swgRUaM=; b=TncHJNl/sp3dipaIUiFJs2M4NG dkfmmBSHjaNZW7bj0EQZdf4bxoReb9O83OwONL296oIVw4Cwxyc66Mgi+otAg2U7bkoCE1juIHeh6 RMU2WyEpCUXLDLd4jPpNLdZ60F+QuAkomqdh3E1eGDRwLlgRXC5ZthOXoHtwiWn5cuS0=;
X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xUOfq-000IWY-BQ; Fri, 20 Nov 2026 14:29:06 +0100
X-Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>, "maxime.chevallier@bootlin.com" <maxime.chevallier@bootlin.com>, "Lindberg, Magnus" <magnus.k.lindberg@ericsson.com>, "Chintalapalle, Balaji" <balaji.chintalapalle@intel.com>, "D H, Siddaraju" <siddaraju.dh@intel.com>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <BYAPR11MB27105AFF28337302B1493FFFD2782@BYAPR11MB2710.namprd11.prod.outlook.com>