From: Fidelio LAWSON <lawson.fidelio@gmail.com>
To: Nicolai Buchwitz <nb@tipi-net.de>
Cc: Woojung Huh <woojung.huh@microchip.com>,
UNGLinuxDriver@microchip.com, Andrew Lunn <andrew@lunn.ch>,
Vladimir Oltean <olteanv@gmail.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Marek Vasut <marex@denx.de>,
Maxime Chevallier <maxime.chevallier@bootlin.com>,
Simon Horman <horms@kernel.org>,
Heiner Kallweit <hkallweit1@gmail.com>,
Russell King <linux@armlinux.org.uk>,
Tristram Ha <Tristram.Ha@microchip.com>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
Fidelio Lawson <fidelio.lawson@exotec.com>
Subject: Re: [PATCH net-next v7 1/3] net: dsa: microchip: implement KSZ87xx Module 3 low-loss cable errata
Date: Mon, 1 Jun 2026 12:40:37 +0200 [thread overview]
Message-ID: <9c28fb8e-da52-40b3-8dd3-c0bd06ac3434@gmail.com> (raw)
In-Reply-To: <fbb60fec5bbeb5fb83e215adbc2dcbb3@tipi-net.de>
Hi Nicolai,
Thanks again for the detailed testing and feedback.
On 5/28/26 13:43, Nicolai Buchwitz wrote:
>
> The cached state lives on struct ksz_device, but ksz8_r_phy() is
> invoked per port. Setting the preset on one port is reported back as
> active on the others:
>
> phytool write swp1/1/0x1a 1
> phytool read swp1/2/0x1a -> 0x0001
> phytool read swp1/3/0x1a -> 0x0001
>
> The commit message already notes that the erratum applies switch-wide.
> So writes from non-primary ports could either be rejected or at least
> produce
> a dev_info_once() so userspace can see the setting is shared?
>
I will add a dev_info_once() to inform userspace that the configuration
is shared across all ports.
>
> dev->eq_init starts at zero from the kzalloc, but the header added by
> this patch defines KSZ87XX_DSP_EQ_INIT_FACTORY = 0x0F as the hardware
> default. After a fresh boot on my setup (no writes), the read returns 0:
>
> phytool read swp1/1/0x1c -> 0x0000
>
> Should probe set dev->eq_init = KSZ87XX_DSP_EQ_INIT_FACTORY (and
> dev->lpf_bw = KSZ87XX_PHY_LPF_90MHZ), or read the indirect registers
> once on probe, so the cache reflects what the hardware actually holds?
>
Good point, I will fix this by setting dev->eq_init =
KSZ87XX_DSP_EQ_INIT_FACTORY and dev->lpf_bw = KSZ87XX_PHY_LPF_90MHZ
during probe.
Thanks,
Fidelio
next prev parent reply other threads:[~2026-06-01 10:40 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-24 10:44 [PATCH net-next v7 0/3] ksz87xx: add support for low-loss cable equalizer errata Fidelio Lawson
2026-05-24 10:44 ` [PATCH net-next v7 1/3] net: dsa: microchip: implement KSZ87xx Module 3 low-loss cable errata Fidelio Lawson
2026-05-28 7:19 ` Nicolai Buchwitz
2026-06-01 8:30 ` Fidelio LAWSON
2026-05-28 11:43 ` Nicolai Buchwitz
2026-06-01 10:40 ` Fidelio LAWSON [this message]
2026-05-24 10:44 ` [PATCH net-next v7 2/3] net: ethtool: add KSZ87xx low-loss cable PHY tunables Fidelio Lawson
2026-05-24 10:44 ` [PATCH net-next v7 3/3] net: phy: micrel: expose KSZ87xx low-loss cable tunables Fidelio Lawson
2026-05-24 16:19 ` [PATCH net-next v7 0/3] ksz87xx: add support for low-loss cable equalizer errata Marek Vasut
2026-05-28 9:11 ` Paolo Abeni
2026-05-28 2:30 ` Jakub Kicinski
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=9c28fb8e-da52-40b3-8dd3-c0bd06ac3434@gmail.com \
--to=lawson.fidelio@gmail.com \
--cc=Tristram.Ha@microchip.com \
--cc=UNGLinuxDriver@microchip.com \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=fidelio.lawson@exotec.com \
--cc=hkallweit1@gmail.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=marex@denx.de \
--cc=maxime.chevallier@bootlin.com \
--cc=nb@tipi-net.de \
--cc=netdev@vger.kernel.org \
--cc=olteanv@gmail.com \
--cc=pabeni@redhat.com \
--cc=woojung.huh@microchip.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