From: sashiko-bot@kernel.org
To: "Rustam Adilov" <adilov@disroot.org>
Cc: neil.armstrong@linaro.org, robh@kernel.org, conor+dt@kernel.org,
vkoul@kernel.org, olteanv@gmail.com, devicetree@vger.kernel.org,
linux-phy@lists.infradead.org
Subject: Re: [PATCH v7 3/6] dt-bindings: phy: realtek,usb2phy.yaml: extend for resets and RTL9607C support
Date: Sat, 15 Aug 2026 09:25:15 +0000 [thread overview]
Message-ID: <20260815092515.774B81F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260815091340.26910-4-adilov@disroot.org>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] Unused `read` function pointer in `struct phy_reg_desc`.
--
--- Patch [3]: [PATCH v7 3/6] dt-bindings: phy: realtek,usb2phy.yaml: extend for resets and RTL9607C support ---
commit 16f65d15255be7042c02dfe746526c8bd6b0efc9
Author: Rustam Adilov <adilov@disroot.org>
dt-bindings: phy: realtek,usb2phy.yaml: extend for resets and RTL9607C support
This commit adds the realtek,rtl9607-usb2phy compatible for the USB2 PHY
on the RTL9607C SoC series. It also introduces a resets property to
describe the multipurpose USB2 PHY reset line, making it required for
the RTL9607C SoC while explicitly disabling it for other RTD devices.
> diff --git a/drivers/phy/realtek/phy-rtk-usb2.c b/drivers/phy/realtek/phy-rtk-usb2.c
> index e8d0f0119ec0a..5e483c853f02f 100644
> --- a/drivers/phy/realtek/phy-rtk-usb2.c
> +++ b/drivers/phy/realtek/phy-rtk-usb2.c
> @@ -64,6 +64,8 @@ struct phy_reg_desc {
> int vstatus_offset;
> u32 vstatus_busy;
> u32 new_reg_req;
> + u32 (*read)(void __iomem *reg);
[Severity: Low]
Is this read function pointer ever consumed?
It appears to be added to the descriptor struct but is never called
anywhere in the driver.
> + void (*write)(u32 val, void __iomem *reg);
> };
[ ... ]
> @@ -130,6 +132,16 @@ struct rtk_phy {
> struct dentry *debug_dir;
> };
>
> +static u32 rtk_usb2phy_read(void __iomem *reg)
> +{
> + return readl(reg);
> +}
[Severity: Low]
Is it necessary to implement this default read function?
Since the read function pointer in struct phy_reg_desc is unused, this
implementation might be dead code.
> +
> +static void rtk_usb2phy_write(u32 val, void __iomem *reg)
> +{
> + writel(val, reg);
> +}
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260815091340.26910-1-adilov@disroot.org?part=3
WARNING: multiple messages have this Message-ID (diff)
From: sashiko-bot@kernel.org
To: "Rustam Adilov" <adilov@disroot.org>
Cc: neil.armstrong@linaro.org, robh@kernel.org, conor+dt@kernel.org,
vkoul@kernel.org, olteanv@gmail.com, devicetree@vger.kernel.org,
linux-phy@lists.infradead.org
Subject: Re: [PATCH v7 3/6] dt-bindings: phy: realtek,usb2phy.yaml: extend for resets and RTL9607C support
Date: Sat, 15 Aug 2026 09:25:15 +0000 [thread overview]
Message-ID: <20260815092515.774B81F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260815091340.26910-4-adilov@disroot.org>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] Unused `read` function pointer in `struct phy_reg_desc`.
--
--- Patch [3]: [PATCH v7 3/6] dt-bindings: phy: realtek,usb2phy.yaml: extend for resets and RTL9607C support ---
commit 16f65d15255be7042c02dfe746526c8bd6b0efc9
Author: Rustam Adilov <adilov@disroot.org>
dt-bindings: phy: realtek,usb2phy.yaml: extend for resets and RTL9607C support
This commit adds the realtek,rtl9607-usb2phy compatible for the USB2 PHY
on the RTL9607C SoC series. It also introduces a resets property to
describe the multipurpose USB2 PHY reset line, making it required for
the RTL9607C SoC while explicitly disabling it for other RTD devices.
> diff --git a/drivers/phy/realtek/phy-rtk-usb2.c b/drivers/phy/realtek/phy-rtk-usb2.c
> index e8d0f0119ec0a..5e483c853f02f 100644
> --- a/drivers/phy/realtek/phy-rtk-usb2.c
> +++ b/drivers/phy/realtek/phy-rtk-usb2.c
> @@ -64,6 +64,8 @@ struct phy_reg_desc {
> int vstatus_offset;
> u32 vstatus_busy;
> u32 new_reg_req;
> + u32 (*read)(void __iomem *reg);
[Severity: Low]
Is this read function pointer ever consumed?
It appears to be added to the descriptor struct but is never called
anywhere in the driver.
> + void (*write)(u32 val, void __iomem *reg);
> };
[ ... ]
> @@ -130,6 +132,16 @@ struct rtk_phy {
> struct dentry *debug_dir;
> };
>
> +static u32 rtk_usb2phy_read(void __iomem *reg)
> +{
> + return readl(reg);
> +}
[Severity: Low]
Is it necessary to implement this default read function?
Since the read function pointer in struct phy_reg_desc is unused, this
implementation might be dead code.
> +
> +static void rtk_usb2phy_write(u32 val, void __iomem *reg)
> +{
> + writel(val, reg);
> +}
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260815091340.26910-1-adilov@disroot.org?part=3
--
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
next prev parent reply other threads:[~2026-08-15 9:25 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-15 9:13 [PATCH v7 0/6] phy: realtek: usb2: support for RTL9607C USB2 PHY Rustam Adilov
2026-08-15 9:13 ` Rustam Adilov
2026-08-15 9:13 ` [PATCH v7 1/6] phy: realtek: usb2: introduce phy_reg_desc struct to the driver Rustam Adilov
2026-08-15 9:13 ` Rustam Adilov
2026-08-15 9:25 ` sashiko-bot
2026-08-15 9:25 ` sashiko-bot
2026-08-15 9:13 ` [PATCH v7 2/6] phy: realtek: usb2: introduce read and write functions to phy_reg_desc struct Rustam Adilov
2026-08-15 9:13 ` Rustam Adilov
2026-08-15 9:24 ` sashiko-bot
2026-08-15 9:24 ` sashiko-bot
2026-08-15 9:13 ` [PATCH v7 3/6] dt-bindings: phy: realtek,usb2phy.yaml: extend for resets and RTL9607C support Rustam Adilov
2026-08-15 9:13 ` Rustam Adilov
2026-08-15 9:25 ` sashiko-bot [this message]
2026-08-15 9:25 ` sashiko-bot
2026-08-15 9:13 ` [PATCH v7 4/6] phy: realtek: usb2: introduce reset controller struct Rustam Adilov
2026-08-15 9:13 ` Rustam Adilov
2026-08-15 9:26 ` sashiko-bot
2026-08-15 9:26 ` sashiko-bot
2026-08-15 9:13 ` [PATCH v7 5/6] phy: realtek: usb2: add support for RTL9607C USB2 PHY Rustam Adilov
2026-08-15 9:13 ` Rustam Adilov
2026-08-15 9:29 ` sashiko-bot
2026-08-15 9:29 ` sashiko-bot
2026-08-15 9:13 ` [PATCH v7 6/6] phy: realtek: Make configs available for MACH_REALTEK_RTL Rustam Adilov
2026-08-15 9:13 ` Rustam Adilov
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=20260815092515.774B81F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=adilov@disroot.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=neil.armstrong@linaro.org \
--cc=olteanv@gmail.com \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=vkoul@kernel.org \
/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.