From: Marek Vasut <marex@nabladev.com>
To: Wei Fang <wei.fang@nxp.com>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Cc: "David S. Miller" <davem@davemloft.net>,
Andrew Lunn <andrew+netdev@lunn.ch>,
Clark Wang <xiaoning.wang@nxp.com>,
Claudiu Manoil <claudiu.manoil@nxp.com>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Vladimir Oltean <vladimir.oltean@nxp.com>,
"imx@lists.linux.dev" <imx@lists.linux.dev>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [net-next,PATCH] enetc: Set eMDIO MDC rate to 2.5 MHz only on i.MX95
Date: Fri, 16 Oct 2026 20:20:16 +0200 [thread overview]
Message-ID: <39d85490-d6e4-4bd1-a539-94cb34c31cea@nabladev.com> (raw)
In-Reply-To: <AS4PR04MB93382E107F5799E9FAB9010988932@AS4PR04MB9338.eurprd04.prod.outlook.com>
On 10/8/26 5:24 AM, Wei Fang wrote:
>> static const struct pci_device_id enetc_pci_mdio_id_table[] = {
>> - { PCI_DEVICE(PCI_VENDOR_ID_FREESCALE, ENETC_MDIO_DEV_ID) },
>> - { PCI_DEVICE(NETC_EMDIO_VEN_ID, NETC_EMDIO_DEV_ID) },
>> + { PCI_DEVICE(PCI_VENDOR_ID_FREESCALE, ENETC_MDIO_DEV_ID), 0, 0,
>> 258 },
>> + { PCI_DEVICE(NETC_EMDIO_VEN_ID, NETC_EMDIO_DEV_ID), 0, 0, 66 },
>> { 0, } /* End of table. */
>> };
>
> No, please do not add the divisor to the driver_data. All NETC v4 devices
> use the same vendor ID and device ID, but their system clock may be
> different. So the divisor is different as well.
>
> In addition to EMDIO, the ENETC port and NETC switch port also support
> virtual MDIO, which uses their own MDIO registers to access the external
> PHY. Therefore, the modifications go far beyond this.
>
> If you don't mind, I can add a patch set to address this issue later. You can
> simply revert the commit 587acb86d646 "enetc: Increase eMDIO MDC rate
> to 2.5 MHz".
I am tempted to do that at this point, but the MX95 would then be
incompatible with TJA1120 which does not work for me.
But isn't the PCI_DEVICE(NETC_EMDIO_VEN_ID, NETC_EMDIO_DEV_ID)
compatible ONLY with the MX95, so this would restore the behavior on
non-MX95 and fix up MX95 only ?
prev parent reply other threads:[~2026-10-16 19:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-01 22:38 Marek Vasut
2026-10-01 22:43 ` netdev-bot+sinfo
2026-10-05 15:30 ` netdev-bot+sashiko
2026-10-08 0:22 ` Jakub Kicinski
2026-10-16 18:18 ` Marek Vasut
2026-10-08 3:24 ` Wei Fang
2026-10-16 18:20 ` Marek Vasut [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=39d85490-d6e4-4bd1-a539-94cb34c31cea@nabladev.com \
--to=marex@nabladev.com \
--cc=andrew+netdev@lunn.ch \
--cc=claudiu.manoil@nxp.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=imx@lists.linux.dev \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=vladimir.oltean@nxp.com \
--cc=wei.fang@nxp.com \
--cc=xiaoning.wang@nxp.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®