* [PATCH net-next] net: ethernet: ti: davinci_mdio: enable MDIO manual mode for AM62PX
@ 2026-11-25 15:08 Paul Louvel (Schneider Electric)
2026-11-26 14:22 ` Paul Louvel
2026-11-26 15:09 ` netdev-bot+sashiko
0 siblings, 2 replies; 3+ messages in thread
From: Paul Louvel (Schneider Electric) @ 2026-11-25 15:08 UTC (permalink / raw)
To: Siddharth Vadapalli, Roger Quadros, Andrew Lunn, David S. Miller,
Eric Dumazet, Jakub Kicinski, Paolo Abeni
Cc: Bo Mellberg, Ravi Gunasekaran, Thomas Petazzoni, linux-omap,
netdev, Paul Louvel (Schneider Electric)
The problem described in Errata i2329 also affect the TI AM62PX SoC,
despite not being listed in the following document:
https://www.ti.com/lit/er/sprz574b/sprz574b.pdf
Add it to the structure that enables MDIO manual mode.
Link: https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1647576/am62p-external-switch-connectivity-problems
Signed-off-by: Paul Louvel (Schneider Electric) <paul.louvel@bootlin.com>
---
drivers/net/ethernet/ti/davinci_mdio.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/ti/davinci_mdio.c b/drivers/net/ethernet/ti/davinci_mdio.c
index c413887657e9..9b58ba7acc4f 100644
--- a/drivers/net/ethernet/ti/davinci_mdio.c
+++ b/drivers/net/ethernet/ti/davinci_mdio.c
@@ -505,6 +505,7 @@ static const struct k3_mdio_soc_data am65_mdio_soc_data = {
static const struct soc_device_attribute k3_mdio_socinfo[] = {
{ .family = "AM62X", .data = &am65_mdio_soc_data },
+ { .family = "AM62PX", .data = &am65_mdio_soc_data },
{ .family = "AM64X", .data = &am65_mdio_soc_data },
{ .family = "AM65X", .data = &am65_mdio_soc_data },
{ .family = "J7200", .data = &am65_mdio_soc_data },
---
base-commit: 3dd8c790a7b7027abdd568e36db5e82ffaea7c77
change-id: 20261125-am62p-mdio-bitbang-1092530ef9a0
Best regards,
--
Paul Louvel, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] net: ethernet: ti: davinci_mdio: enable MDIO manual mode for AM62PX
2026-11-25 15:08 [PATCH net-next] net: ethernet: ti: davinci_mdio: enable MDIO manual mode for AM62PX Paul Louvel (Schneider Electric)
@ 2026-11-26 14:22 ` Paul Louvel
2026-11-26 15:09 ` netdev-bot+sashiko
1 sibling, 0 replies; 3+ messages in thread
From: Paul Louvel @ 2026-11-26 14:22 UTC (permalink / raw)
To: Paul Louvel (Schneider Electric), Siddharth Vadapalli,
Roger Quadros, Andrew Lunn, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni
Cc: Bo Mellberg, Ravi Gunasekaran, Thomas Petazzoni, linux-omap,
netdev, Pascal Eberhard
Adding Pascal in the thread.
On Wed Nov 25, 2026 at 4:08 PM CET, Paul Louvel (Schneider Electric) wrote:
> The problem described in Errata i2329 also affect the TI AM62PX SoC,
> despite not being listed in the following document:
>
> https://www.ti.com/lit/er/sprz574b/sprz574b.pdf
>
> Add it to the structure that enables MDIO manual mode.
>
> Link: https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1647576/am62p-external-switch-connectivity-problems
> Signed-off-by: Paul Louvel (Schneider Electric) <paul.louvel@bootlin.com>
> ---
> drivers/net/ethernet/ti/davinci_mdio.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/net/ethernet/ti/davinci_mdio.c b/drivers/net/ethernet/ti/davinci_mdio.c
> index c413887657e9..9b58ba7acc4f 100644
> --- a/drivers/net/ethernet/ti/davinci_mdio.c
> +++ b/drivers/net/ethernet/ti/davinci_mdio.c
> @@ -505,6 +505,7 @@ static const struct k3_mdio_soc_data am65_mdio_soc_data = {
>
> static const struct soc_device_attribute k3_mdio_socinfo[] = {
> { .family = "AM62X", .data = &am65_mdio_soc_data },
> + { .family = "AM62PX", .data = &am65_mdio_soc_data },
> { .family = "AM64X", .data = &am65_mdio_soc_data },
> { .family = "AM65X", .data = &am65_mdio_soc_data },
> { .family = "J7200", .data = &am65_mdio_soc_data },
>
> ---
> base-commit: 3dd8c790a7b7027abdd568e36db5e82ffaea7c77
> change-id: 20261125-am62p-mdio-bitbang-1092530ef9a0
>
> Best regards,
> --
> Paul Louvel, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
--
Paul Louvel, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] net: ethernet: ti: davinci_mdio: enable MDIO manual mode for AM62PX
2026-11-25 15:08 [PATCH net-next] net: ethernet: ti: davinci_mdio: enable MDIO manual mode for AM62PX Paul Louvel (Schneider Electric)
2026-11-26 14:22 ` Paul Louvel
@ 2026-11-26 15:09 ` netdev-bot+sashiko
1 sibling, 0 replies; 3+ messages in thread
From: netdev-bot+sashiko @ 2026-11-26 15:09 UTC (permalink / raw)
To: paul.louvel
Cc: s-vadapalli, rogerq, andrew+netdev, davem, edumazet, kuba, pabeni,
bo.mellberg, r-gunasekaran, thomas.petazzoni, linux-omap, netdev
Thank you for your contribution! Sashiko AI review found 2 potential
issue(s) to consider.
Critical: 0 · High: 0 · Medium: 1 · Low: 1
If you believe none of the issues are legitimate, please reply to each
issue of Medium severity or higher and explain why the AI is wrong.
If any of them are legitimate and you plan to respin, please let patchwork
know by including "pw-bot: cr" as a separate line at the end of your reply
(one such reply per series is enough).
- [Medium] The patch turns on the i2329 MDIO manual-mode workaround only
for the "AM62PX" family string.
- [Low] The commit enables an erratum workaround to fix a problem users
can see on AM62P: MDIO corruption and broken external-switch…
--
net: ethernet: ti: davinci_mdio: enable MDIO manual mode for AM62PX
This commit adds the AM62PX SoC family to the k3_mdio_socinfo table in
drivers/net/ethernet/ti/davinci_mdio.c. That turns on the MDIO manual mode
workaround for Errata i2329 on AM62P. The erratum document does not list
AM62PX, but a TI E2E thread reports the same issue on that SoC.
Link: https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1647576/am62p-external-switch-connectivity-problems
> diff --git a/drivers/net/ethernet/ti/davinci_mdio.c b/drivers/net/ethernet/ti/davinci_mdio.c
> index c413887657e92..9b58ba7acc4fa 100644
> --- a/drivers/net/ethernet/ti/davinci_mdio.c
> +++ b/drivers/net/ethernet/ti/davinci_mdio.c
> @@ -505,6 +505,7 @@ static const struct k3_mdio_soc_data am65_mdio_soc_data = {
>
> static const struct soc_device_attribute k3_mdio_socinfo[] = {
> { .family = "AM62X", .data = &am65_mdio_soc_data },
> + { .family = "AM62PX", .data = &am65_mdio_soc_data },
[Severity: Medium]
Should J722S be added to this table as well?
The cpsw3g_mdio node is in
arch/arm64/boot/dts/ti/k3-am62p-j722s-common-main.dtsi. Both k3-am62p.dtsi
and k3-j722s.dtsi include that file, so the two SoCs appear to use the same
MDIO instance:
cpsw3g_mdio: mdio@f00 {
compatible = "ti,cpsw-mdio","ti,davinci_mdio";
J722S has its own family string in drivers/soc/ti/k3-socinfo.c:
{ JTAG_ID_PARTNO_J722S, "J722S" },
This means the new "AM62PX" entry does not match J722S. On J722S,
soc_device_match(k3_mdio_socinfo) in davinci_mdio_probe() finds no match and
data->manual_mode stays false. The driver then uses davinci_mdio_read() and
davinci_mdio_write() on the hardware MDIO state machine instead of the
bitbang bus.
The commit message says the erratum document under-reports the affected
SoCs. If that is the case, J722S being absent from the document does not
show that it is unaffected.
Was J722S left out on purpose? If so, could the commit message say why?
AM62AX and J784S4 also have ti,cpsw-mdio nodes and are reported by
k3-socinfo, but neither is in this table. Their link to this change is less
direct, though.
[Severity: Low]
This isn't a bug, but should this have a Fixes: tag and a Cc: stable?
The change fixes an MDIO problem on AM62P that users can see. AM62P
CPSW/MDIO DT support came in with commit b5080c7c1f7e ("arm64: dts: ti:
k3-am62p: Add nodes for more IPs"). That was before commit be5fc78a0084
("net: ethernet: ti: davinci_mdio: Update K3 SoCs list for errata i2329")
reworked the i2329 SoC list, and that rework did not include AM62PX.
Either commit could be the Fixes: target. Without a tag, stable kernels that
support AM62P may not pick up this workaround.
> { .family = "AM64X", .data = &am65_mdio_soc_data },
> { .family = "AM65X", .data = &am65_mdio_soc_data },
> { .family = "J7200", .data = &am65_mdio_soc_data },
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261125-am62p-mdio-bitbang-v1-1-aebf1f5fa3fc%40bootlin.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-11-26 15:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-25 15:08 [PATCH net-next] net: ethernet: ti: davinci_mdio: enable MDIO manual mode for AM62PX Paul Louvel (Schneider Electric)
2026-11-26 14:22 ` Paul Louvel
2026-11-26 15:09 ` netdev-bot+sashiko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox