Netdev List
 help / color / mirror / Atom feed
From: netdev-bot+sashiko@kernel.org
To: paul.louvel@bootlin.com
Cc: s-vadapalli@ti.com, rogerq@kernel.org, andrew+netdev@lunn.ch,
	davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
	pabeni@redhat.com, bo.mellberg@se.com, r-gunasekaran@ti.com,
	thomas.petazzoni@bootlin.com, linux-omap@vger.kernel.org,
	netdev@vger.kernel.org
Subject: Re: [PATCH net-next] net: ethernet: ti: davinci_mdio: enable MDIO manual mode for AM62PX
Date: Thu, 26 Nov 2026 15:09:06 +0000	[thread overview]
Message-ID: <179570574643.3135.14735411472140750286@kernel.org> (raw)
In-Reply-To: <20261125-am62p-mdio-bitbang-v1-1-aebf1f5fa3fc@bootlin.com>

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

      parent reply	other threads:[~2026-11-26 15:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 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=179570574643.3135.14735411472140750286@kernel.org \
    --to=netdev-bot+sashiko@kernel.org \
    --cc=andrew+netdev@lunn.ch \
    --cc=bo.mellberg@se.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=paul.louvel@bootlin.com \
    --cc=r-gunasekaran@ti.com \
    --cc=rogerq@kernel.org \
    --cc=s-vadapalli@ti.com \
    --cc=thomas.petazzoni@bootlin.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