Article View: linux.kernel.netdev
Article #19834Re: Proposal: per-lane PHY polarity get/set via ethtool PHY tunables
From: Vladimir Oltean
Date: Fri, 20 Nov 2026 14:26
Date: Fri, 20 Nov 2026 14:26
33 lines
13229 bytes
13229 bytes
On Fri, 20 Nov 2026 at 15:29, Andrew Lunn <andrew@lunn.ch> wrote: > > 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 > It's not a hardware problem, it's a solution to complex routing. More details in commit fceb17ac05e772ffc82f1f008e876bf7752f0576. Anyway, I also don't see a need for ethtool. To the OP: have you seen https://elixir.bootlin.com/linux/v7.3.1/source/drivers/phy/phy-common-props.c#L128 https://elixir.bootlin.com/linux/v7.3.1/source/Documentation/devicetree/bindings/phy/phy-common-props.yaml ? They are already used from some Ethernet PHY drivers.
Technical Details
Message-ID:
<CA+h21hq0EqJZFh_Kv64TR-oL4j=n61XK1xzzL_GMXLZr-=4PHQ@mail.gmail.com>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367966-linux-kernel-netdev=dewy.ruReferences:
<BYAPR11MB27105AFF28337302B1493FFFD2782@BYAPR11MB2710.namprd11.prod.outlook.com> <112154f6-53f9-4cb7-9124-aba263b097b5@lunn.ch>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367966-linux-kernel-netdev=dewy.ru
From: olteanv@gmail.com (Vladimir Oltean)
Newsgroups: linux.kernel.netdev
Subject: Re: Proposal: per-lane PHY polarity get/set via ethtool PHY tunables
Date: Fri, 20 Nov 2026 16:26:25 +0200
Organization: Usenet Network
Message-ID: <CA+h21hq0EqJZFh_Kv64TR-oL4j=n61XK1xzzL_GMXLZr-=4PHQ@mail.gmail.com>
References: <BYAPR11MB27105AFF28337302B1493FFFD2782@BYAPR11MB2710.namprd11.prod.outlook.com>
<112154f6-53f9-4cb7-9124-aba263b097b5@lunn.ch>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Injection-Info: usenet.network;
logging-data="3179592"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:jTLoE8ssld4xN19bi62UyptMPmc= sha256:HnEpYu6T38DkeqIKWRX8S29uZavS5WEcSvqTHiO1r/g=
sha1:DfO/MUenZBVd4lajhsLIFaCvnAQ= sha256:D7YSddzp7X66UIV6y9Jx19HBvCnxgfG1J88CvuiGnDY=
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 17BD91159BF; Fri, 20 Nov 2026 17:26:58 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.048
X-Spam-Status: No, score=-3.048 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, FREEMAIL_FORGED_FROMDOMAIN=0.001,
FREEMAIL_FROM=0.001, 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 (2048-bit key)
header.d=gmail.com
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 20wrEr5DPYB2;
Fri, 20 Nov 2026 17:26:54 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-367966-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mail.dewy.ru (Postfix) with ESMTPS id 6C6A411598C; Fri, 20 Nov 2026 17:26:43 +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 0791088831; Fri, 20 Nov 2026 14:26:41 +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=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1795184800;
b=vgtv9LFVSlAXNJQzC/m1/CqRWPzg2kVNgZIs75RbdAO3g0V5XJQG1GblBAzoSptuQMJW
9gGXos3ap5Vx5rGGHScKlW2x3+SUTlXn5tVGga7VEnHrxXXDZ+eYO6+6wSko+t08EpJYL
2lVZGQdP39g23s3JWF7ko5NyqBTaFBkhC+T0NAI0GRBjQ5M/GXxZxaOCO9x6mU5BVKBuM
hUBkhDvkZQpvuPCZC8E/gWCQTwWFeplR+e66mPRI+i9hhLeAdNVkztHH0IZ31PCnECL3t
JgsmTHLf1Qig/P4ltS7dj9Uh9X4+7PrbhtLy6gHGegQu/EgL35lvyT5Kund84J2v1Zw==
X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795184800;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Forwarded-Encrypted:X-Gm-Message-State:
X-Gm-Gg:X-Received:X-Mailing-List:List-Id:List-Post:List-Help:
List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version:
References:In-Reply-To:From:Date:X-Gm-Features:Message-ID:Subject:To:
Cc:Content-Type;
bh=C0hn7BxUfynH0D6hp5wIqTAHOmIKvssBciDk5OTln7U=;
b=kuZ/dJjHNE2+nkK6kJNNp/HCJjK2LzbO593qTZDaFr1qM5BSvHqtZv1DEl3sfdGpXDfu
vnQjZW9IIl4GcHZ9m2nQ7POzSCjcf/3EDQlM46ZDAFdZSbtmrhwcGne+2aLIWEM41DwJ0
FFr9OBSUvzp/5Gcj7owtRKvk8JiRQKDyZBFv5aUZpem0WSB4o7KF+Q5rnKMg/rl/nuU8m
33K85BkXPpcbMpWsyo+Ikb5Yb+toV6MMRZtsMETDZydZaFcXPWQy3YN7z4It16HMRgBur
QIYYGoXa/myw6RVbHIPqguQ1GLdiRFkSfOQIhS+Kl9kNlE6G/XtFX/I3o7ebdwXDcWg==
X-ARC-Authentication-Results: i=3; smtp.subspace.kernel.org;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=YNDSWA7A;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
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 583C1606A336;
Fri, 20 Nov 2026 14:26:40 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=YNDSWA7A
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=74.125.224.44
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1795184799;
b=pr8nOLqYzVRQne6JI3Bf+/YRG6RmxshcTpNLmRy2rlyYe0Y2yWaYuNJCVuvLYOzqO1/W
0FZjXgLE2thCh34DikfU3ZeZFghSyPWPzNbazsVHvPZown6V3sI2xq4NrFmV2DXEfvmt7
1bo80vgM46UtyZSV9/OkkEFrEnCE4guDbq3n0Tkjq2oyW3ghJ3Wo1oPIwFlaUJ/gcEDxg
y/Gff3YtBdghqTaEu8F9o1Wz2dS9tK58b5cRLtG8tTq4a877h5hrFNw2MW3iLHSlZrCZi
RfbYTLInFA6Klk4tvoTAYeOlzMDL3hOnnA6Bq5nfPVvqM4Vb4rNoSpCAkSmbfh9K2uw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795184799;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:
MIME-Version:References:In-Reply-To:From:Date:X-Gm-Features:
Message-ID:Subject:To:Cc:Content-Type;
bh=C0hn7BxUfynH0D6hp5wIqTAHOmIKvssBciDk5OTln7U=;
b=R+azYjKO+nsMI0AWAtiFBgUJKNV5G/uHF9sWpmW7aKj1myemR1V8ZK669o+LDjXdDy/J
reD7UrtF0v3wnc9PNrqmR8Zj9/KQqpbFENH2t9Zs6PaJ2pNGc701M7NOPuarsgu8jSt5L
ySUrJP1FRouYdAo0GqPpCRZqigLG3QLygHZN7caqh8XWzFR3mzphRuh3Ao6Q99hVk5NIp
pvCTNR22GqUvS+mZTsH6C+m7oNJIme7ZpxwZnVi0gFYLC4oc4ZjTlfu6fcB4MKPoqIsAf
HLEVRklvi4uPMMIB4S9BNq7Lss5paj74sbtOHk4TwBpKmVxgiVEbdVFoPuj0dwU+SxA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=YNDSWA7A;
arc=pass header.oldest-pass=0 smtp.remote-ip=74.125.224.44
X-Received: from mail-yx1-f44.google.com (mail-yx1-f44.google.com [74.125.224.44])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 320FE606A320
for <netdev@vger.kernel.org>; Fri, 20 Nov 2026 14:26:39 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 320FE606A320
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-yx1-f44.google.com with SMTP id 956f58d0204a3-66fc7e0ab25so118494d50.0
for <netdev@vger.kernel.org>; Fri, 20 Nov 2026 06:26:39 -0800 (PST)
X-ARC-Seal: i=1; a=rsa-sha256; t=1795184798; cv=none;
d=google.com; s=arc-20260327;
b=R6TOZgW7F/yk0/VteO78ZuNBx2TYY5PgYstqorzYF2QEPYJg96QteKmEVeq9Skeqdn
nospEvgDQsEVWIRIduCWazjuE4Eo6sIy23+CQAdbfS18gN87mLEW4EzSfpIwROiE6MXp
OYbiLh4BCjsl1J18nM9VFTZ+DtKOAWei45GcIQACBuJj2stA6raGaZMnAUq8ObEmfOXn
xUryFUxaNJOr+zoKLyiXAWK/VGgMN4p0SbJ5It1N/eNiYfq1jMLEpyVHAqIPcmCYFs6Y
8xVdJq7CaKS8m8a14qGtDAa1elPd/+aEicqBKfpAKQ9Wm0R+yx8wv9MiCK4AC/BeRNpP
46uA==
X-ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327;
h=cc:to:subject:message-id:date:from:in-reply-to:references
:mime-version:dkim-signature;
bh=C0hn7BxUfynH0D6hp5wIqTAHOmIKvssBciDk5OTln7U=;
fh=snrGQ0KISHEq/h7FWAFVvYFhMz6qQe0anSvdRlZ9SHA=;
b=CXKR3kityPWFTDWHK0IIkQGWQFExYD93N9pF507gdG0mQdPM0Ui9ZIjwv6VHSKlKfj
TDTJBazKHaWXFPjy5V4eW7xo0ROxE+9emoFOdKSRFv9xxWDIlRcbe82p0Q5HjTTxeMhw
WxoIwHzJuGTzDTwXh4qNb2XeakqtURMRDZqktWFNpCRmhDA8xAiNplNGH5/M05tXWCI7
wsXm5SaxqgYo9EeqdLq1ARxeToO6j+r76QEVRi9xJOdNNwENkooIElbhYSmTtv4yHcrF
tlT3sJrdDW8p3vryoU7K0c9ylXvHEvtfQJhu8sWPUoafXZHkZ5peupzNIB/cylGkH/HJ
kpKQ==;
darn=vger.kernel.org
X-ARC-Authentication-Results: i=1; mx.google.com; arc=none
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1795184798; x=1795789598; darn=vger.kernel.org;
h=content-type:cc:to:subject:message-id:date:from:in-reply-to
:references:mime-version:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=C0hn7BxUfynH0D6hp5wIqTAHOmIKvssBciDk5OTln7U=;
b=YNDSWA7AHnhUQ0y8K6nao7g4a5Rx1hcYBaU0qFNN4Nh7UAqtMlfhsb9EIeWr2iQGu1
EiCdjHWGSKj3jp2so1TuKMdKy+qRWaSeY7HqM3Js3n0sT+CX0x3229kN7E1RWJKIh+aH
34zFaIusHxFVtWVl7UhjUjXdXyabINjK/Vbr9JGeKZYkjkZHBbIJ9niw1s/2UZraDDow
XCDN9/3tS7eYMOnysta8D0iRBoCoEDqbahXz9lZn6IRVoFT2MbLMZRpC45IE2Ej1CeoY
L5XD3gIx1o6MFNRskYQXRzbZNHVVhEPbeKWEqLqZlk4iizCrgXJZRY7a0lC3S/m5yIKu
z+uA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1795184798; x=1795789598;
h=content-type:cc:to:subject:message-id:date:from:in-reply-to
:references:mime-version:x-gm-gg:x-gm-message-state:from:to:cc
:subject:date:message-id:reply-to:content-type;
bh=C0hn7BxUfynH0D6hp5wIqTAHOmIKvssBciDk5OTln7U=;
b=LJGFJeHKr6KuphY2KUzjFfi5ibnLaQnPXFoqpGnQawGbrhvhHR5ES8MtDrmhsGwmRd
tJFikm82jWP6M6rResilRD10bKSmE0/rK/SUIg1mBxq7apFnnKoq8lWaoVf2eHoz47S5
vzFE2bGkw5AUL1TRp6sAcl5OlLZLqxWwXKaE/CVkSgzMf/hNm49EJ4z6IXjvK7CQpksm
KuEqj2a84H0f66z047x+SpK51ObhcrIfVthqIqnQ3it/jxxDAG2/y0GH0f+AF3SppWfI
uYHGLDNsTD6jkuoenxu8TO8ceiP7J4iuH0SczJXpb6ggFZhxiafH5dsVhAOuclgM4AfT
NXTg==
X-Forwarded-Encrypted: i=1; AL+hErGrF3mHmLyUqzt6k99jedA0YrsO9owUapH22GFEaV+CafX6rGHBjaZUD5uuiuU1zFEANPBtYg8=@vger.kernel.org
X-Gm-Message-State: APuU4Z96r+DEP6zDqcH1D1MW+2SUws7kllriYSCqbXhvvmKuK0F0RZVN
jYR2uyfYKPuqJugzU77lnxJQePE0X1MCublRKYnbw7AsO3E8UEDI5rFuzUkvJu4eQ428mI9oGY3
4SFGs2E+OdujrNqGgT4bQ7/ldkwsUzu4=
X-Gm-Gg: AZFdTZfbPGZGJ8rLWu+ohbAYxUAXwqCGbLj48oDLtkTWOUqOvvFsTVcIpl/e+vL+2TJ
v1vx65EuEipD8olPDAygwQnAU7wQoTExVwEKiK/DY+PcezyfDSOB4jWGPUeGCloTKFhj4vpEx4e
DyEZqbuOyPJIPAdxzCmHmBFK5dJhkhnTdTZo8B6XgRdwkyTEt7JQQt4GY3dOkBGY8nOw/q3yRY/
ZNDPxuQ3J6u1LDscFlGpVQVKB1/lVpPwwwSLdlKaPcJc92eQcFXIh1ACRSm76b2duf4yuurI/qF
N3M3e573Ucvt2S5CtfqgzrkBLK1Y/oFfpUcczgend+LvZsm3mGBmqbz+sABSqtq9L/l1hYO49gr
ZH1pbPrqAKab71WkpJW5AiYw2RKUyuRrKeaLBoyx5T0E96lLqcE+/W8r3KB1qQWfTJF1cnGPAEc
VGJgPT5eFvNJIDGHM=
X-Received: by 2002:a05:690e:191b:b0:675:6a0a:383d with SMTP id
956f58d0204a3-67df40dcbd6mr2898128d50.0.1795184798260; Fri, 20 Nov 2026
06:26:38 -0800 (PST)
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: <112154f6-53f9-4cb7-9124-aba263b097b5@lunn.ch>
X-Gm-Features: AclHuK-bnfljFOPgRxCAe6UslGe3HEuoBhmEL1577xic6EWvyu9qSiL0MyPdaOY
X-Cc: "Doddagoudar, Susheela M" <susheela.m.doddagoudar@intel.com>,
"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>