From: Andrew Lunn <andrew@lunn.ch>
To: Daniel Golle <daniel@makrotopia.org>
Cc: "Russell King (Oracle)" <linux@armlinux.org.uk>,
"Marek Behún" <kabel@kernel.org>,
"Alexander Couzens" <lynxis@fe80.eu>,
"Heiner Kallweit" <hkallweit1@gmail.com>,
"David S. Miller" <davem@davemloft.net>,
"Eric Dumazet" <edumazet@google.com>,
"Jakub Kicinski" <kuba@kernel.org>,
"Paolo Abeni" <pabeni@redhat.com>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next] net: phy: populate host_interfaces when attaching PHY
Date: Thu, 10 Oct 2024 18:58:27 +0200 [thread overview]
Message-ID: <cc2b5686-d82b-4578-b9f4-c3e84f2066e4@lunn.ch> (raw)
In-Reply-To: <ZwgAomacnmOtg8AK@makrotopia.org>
> I initially tried to upstream the patch Alexander Couzens had written
> for that in 2023, and back then we assumed that interface mode switching
> would always be performed in case 2500Base-X was the main mode.
> However, I gave up at some point because I was asked for detailed
> definition of the PHY registers and bits, which, frankly speaking, just
> doesn't exist, not even in RealTek's under-NDA datasheet which merely
> lists some magic sequences of register writes.
>
> https://patchwork.kernel.org/comment/25331309/
It is fine to document that these are magic values written into magic
registers and nobody knows what they are doing, if there is no
documentation. I just like to push people to actually check if there
is documentation, otherwise there will be more and more examples of
this magic.
I've been keeping an eye out for 'magic' registers which are actually
part of 802.3, and pushing back that these are least should be fully
documented. And it does happen, particularly in vendor submitted code
:-(
But you said the patch got merged eventually, so it seems like it
worked out in the end.
Andrew
prev parent reply other threads:[~2024-10-10 16:58 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-09 1:57 Daniel Golle
2024-10-09 9:01 ` Russell King (Oracle)
2024-10-09 11:52 ` Daniel Golle
2024-10-09 17:34 ` Russell King (Oracle)
2024-10-09 18:52 ` Daniel Golle
2024-10-09 20:12 ` Russell King (Oracle)
2024-10-09 21:31 ` Daniel Golle
2024-10-09 23:23 ` Russell King (Oracle)
2024-10-10 14:07 ` Daniel Golle
2024-10-10 14:58 ` Russell King (Oracle)
2024-10-10 16:28 ` Daniel Golle
2024-10-10 16:58 ` Andrew Lunn [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cc2b5686-d82b-4578-b9f4-c3e84f2066e4@lunn.ch \
--to=andrew@lunn.ch \
--cc=daniel@makrotopia.org \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=hkallweit1@gmail.com \
--cc=kabel@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=lynxis@fe80.eu \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®