From: sashiko-bot@kernel.org
To: "Artem Shimko" <a.shimko.dev@gmail.com>
Cc: conor+dt@kernel.org, devicetree@vger.kernel.org, robh@kernel.org
Subject: Re: [PATCH net-next v4 2/2] net: phy: add DAPU Telecom DAP8211R(I) Gigabit Ethernet PHY driver
Date: Tue, 28 Jul 2026 07:53:39 +0000 [thread overview]
Message-ID: <20260728075339.63B5C1F00A3A@smtp.kernel.org> (raw)
In-Reply-To: <20260727075324.3555446-3-a.shimko.dev@gmail.com>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] The Kconfig help text claims support for device tree flags enabling a 180-degree TX clock phase shift and an internal packet generator, but the driver implements neither.
- [Medium] Inconsistent handling of RGMII delay device tree properties relative to the selected phy-mode.
--
--- Patch [2]: [PATCH net-next v4 2/2] net: phy: add DAPU Telecom DAP8211R(I) Gigabit Ethernet PHY driver ---
commit 8189e886a8887b076e59fb9f9e71196f6089538d
Author: Artem Shimko <a.shimko.dev@gmail.com>
net: phy: add DAPU Telecom DAP8211R(I) Gigabit Ethernet PHY driver
This commit introduces a new PHY driver for the DAPU Telecom DAP8211R(I)
Gigabit Ethernet PHY. It implements extended register access via indirect
addressing and configures RGMII TX/RX clock delays through device tree
properties.
> diff --git a/drivers/net/phy/Kconfig b/drivers/net/phy/Kconfig
> index a29d3fed8a053..aab97e01899c5 100644
> --- a/drivers/net/phy/Kconfig
> +++ b/drivers/net/phy/Kconfig
[ ... ]
> @@ -243,6 +243,16 @@ config DAVICOM_PHY
> help
> Currently supports dm9161e and dm9131
>
> +config DAP8211R_PHY
> + tristate "DAPU Telecom DAP8211R(I) Gigabit Ethernet PHY"
> + depends on OF
> + help
> + Support for the DAPU Telecom DAP8211R(I) Gigabit Ethernet PHY.
> + This PHY is designed for enterprise and industrial networking
> + applications, supporting 10/100/1000 Mbps operation.
> + RGMII with: configurable TX/RX clock delays, optional flag to enable
> + 180-degree TX clock phase shift and internal packet generator.
[Severity: Medium]
Are the 180-degree TX clock phase shift and internal packet generator features
actually implemented in this driver?
The help text advertises these features for users configuring the kernel, but
looking at the driver code, there doesn't seem to be any implementation for
them. Could this mislead users who expect these features to be available based
on the documentation?
> +
> config ICPLUS_PHY
> tristate "ICPlus PHYs"
> help
> diff --git a/drivers/net/phy/dap8211r.c b/drivers/net/phy/dap8211r.c
> new file mode 100644
> index 0000000000000..65d6fef86f26b
> --- /dev/null
> +++ b/drivers/net/phy/dap8211r.c
[ ... ]
> +static int dap8211r_config_init(struct phy_device *phydev)
> +{
[ ... ]
> + switch (phydev->interface) {
> + case PHY_INTERFACE_MODE_RGMII:
> + if (rx_internal_delay < 0)
> + rx_internal_delay = 0;
> +
> + if (tx_internal_delay < 0)
> + tx_internal_delay = 0;
> + break;
> + case PHY_INTERFACE_MODE_RGMII_RXID:
> + if (rx_internal_delay < 0)
> + rx_internal_delay = DAP8211R_DEFAULT_DEL_SEL;
> +
> + tx_internal_delay = 0;
[Severity: Medium]
Is it intentional to silently drop an explicitly provided tx-internal-delay-ps
property when using PHY_INTERFACE_MODE_RGMII_RXID?
For PHY_INTERFACE_MODE_RGMII, explicit delay properties are kept and applied.
However, in dap8211r_config_init(), tx_internal_delay is hardcoded to 0 for
the rgmii-rxid mode.
This might lead to unexpected configuration drops if a device tree specifies
phy-mode = "rgmii-rxid" along with a tx-internal-delay-ps property, as the
requested delay will be ignored without warning.
> + break;
> + case PHY_INTERFACE_MODE_RGMII_ID:
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260727075324.3555446-1-a.shimko.dev@gmail.com?part=2
next prev parent reply other threads:[~2026-07-28 7:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-27 7:53 [PATCH net-next v4 0/2] Add DAPU Telecom DAP8211R(I) Gigabit Ethernet PHY driver Artem Shimko
2026-07-27 7:53 ` [PATCH net-next v4 1/2] dt-bindings: net: add DAPU Telecom DAP8211R(I) PHY binding Artem Shimko
2026-07-28 7:53 ` sashiko-bot
2026-07-28 14:29 ` Artem Shimko
2026-07-27 7:53 ` [PATCH net-next v4 2/2] net: phy: add DAPU Telecom DAP8211R(I) Gigabit Ethernet PHY driver Artem Shimko
2026-07-28 7:53 ` sashiko-bot [this message]
2026-07-28 14:15 ` Artem Shimko
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=20260728075339.63B5C1F00A3A@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=a.shimko.dev@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.