From: Nicolai Buchwitz <nb@tipi-net.de>
To: Fidelio Lawson <lawson.fidelio@gmail.com>
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: Thu, 28 May 2026 09:19:00 +0200 [thread overview]
Message-ID: <77de607f2f8330ae6a593a4803887c8f@tipi-net.de> (raw)
In-Reply-To: <20260524-ksz87xx_errata_low_loss_connections-v7-1-1cd49cfa24f0@exotec.com>
Hi Fidelio
On 24.5.2026 12:44, Fidelio Lawson wrote:
> Implement the "Module 3: Equalizer fix for short cables" erratum from
> Microchip document DS80000687C for KSZ87xx switches.
The commit message says this implements Module 3 from DS80000687C, but
the errata's Work Around 1 writes 0x15 to indirect register 0x3C
("PHY equalizer register"), and the patch never touches 0x3C. Could you
please clarify which document the register addresses
(KSZ87XX_REG_DSP_EQ = 0x08, KSZ87XX_REG_PHY_LPF = 0x4C) come from?
I checked against the the following document:
https://ww1.microchip.com/downloads/aemDocuments/documents/OTH/ProductDocuments/Errata/KSZ87xx-Errata-DS80000687C.pdf
> [...]
>
> +static int ksz87xx_apply_low_loss_preset(struct ksz_device *dev, bool
> enable)
> +{
> + /* Apply the Microchip erratum short-cable preset (LPF 62 MHz, EQ
> init 0)
> + * providing a conservative configuration for short or low-loss
> cables.
> + */
> + u8 lpf_bw, eq_init;
> + int ret;
> +
> + lpf_bw = KSZ87XX_PHY_LPF_62MHZ;
> + eq_init = KSZ87XX_DSP_EQ_INIT_LOW_LOSS;
> +
> + if (!ksz_is_ksz87xx(dev))
> + return -EOPNOTSUPP;
> +
> + if (!enable)
> + return 0;
This silently returns when enable = false and nothing is written to the
registers.
Either I'm missing something or the short-cable preset cannot be cleared
through this tunable?
> [...]
Thanks
Nicolai
next prev parent reply other threads:[~2026-05-28 7:19 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 [this message]
2026-06-01 8:30 ` Fidelio LAWSON
2026-05-28 11:43 ` Nicolai Buchwitz
2026-06-01 10:40 ` Fidelio LAWSON
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=77de607f2f8330ae6a593a4803887c8f@tipi-net.de \
--to=nb@tipi-net.de \
--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=lawson.fidelio@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=marex@denx.de \
--cc=maxime.chevallier@bootlin.com \
--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