From: Andrew Lunn <andrew@lunn.ch>
To: "João Rodrigues" <jrodrigues@ubimet.com>
Cc: Heiner Kallweit <hkallweit1@gmail.com>,
Russell King <linux@armlinux.org.uk>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
"open list:ETHERNET PHY LIBRARY" <netdev@vger.kernel.org>,
open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH net-next 2/3] net: phy: dp83867: add cable test support
Date: Fri, 14 Jun 2024 20:16:32 +0200 [thread overview]
Message-ID: <21b38798-46e2-4a26-bf8c-554524fdcdc4@lunn.ch> (raw)
In-Reply-To: <20240614185210.3a53be61@pcn112>
On Fri, Jun 14, 2024 at 06:52:10PM +0200, João Rodrigues wrote:
> On Thu, 13 Jun 2024 19:19:45 +0200
> Andrew Lunn <andrew@lunn.ch> wrote:
>
> > > +/* TDR bits */
> > > +#define DP83867_TDR_GEN_CFG5_FLAGS 0x294A
> > > +#define DP83867_TDR_GEN_CFG6_FLAGS 0x0A9B
> >
> > Is it documented what these bits actually mean?
> >
> > Andrew
>
> No, all three (CFG5, CFG6 and CFG7) are undocumented.
Then i would suggest you use the magic values directly. The only
advantage i see with DP83867_TDR_GEN_CFG5_FLAGS is that is stops you
accidentally using it with CFG4, etc. But magic is magic, and you
should not really hide it.
Andrew
next prev parent reply other threads:[~2024-06-14 18:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-13 14:51 [PATCH net-next 0/3] net: phy: dp83867: add cable diag support João Rodrigues
2024-06-13 14:51 ` [PATCH net-next 1/3] net: phy: dp83867: Add SQI support João Rodrigues
2024-06-13 17:13 ` Andrew Lunn
2024-06-14 16:42 ` João Rodrigues
2024-06-13 14:51 ` [PATCH net-next 2/3] net: phy: dp83867: add cable test support João Rodrigues
2024-06-13 17:19 ` Andrew Lunn
2024-06-14 16:52 ` João Rodrigues
2024-06-14 18:16 ` Andrew Lunn [this message]
2024-06-13 14:51 ` [PATCH net-next 3/3] net: phy: dp83867: Add support for amplitude graph João Rodrigues
2024-06-13 17:26 ` [PATCH net-next 0/3] net: phy: dp83867: add cable diag support Andrew Lunn
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=21b38798-46e2-4a26-bf8c-554524fdcdc4@lunn.ch \
--to=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=hkallweit1@gmail.com \
--cc=jrodrigues@ubimet.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--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®