From: sashiko-bot@kernel.org
To: "Yu-Chun Lin" <eleanor.lin@realtek.com>
Cc: robh@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v11 03/11] reset: realtek: Add RTD1625 reset controller driver
Date: Tue, 28 Jul 2026 14:51:48 +0000 [thread overview]
Message-ID: <20260728145148.CC6D71F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260728142806.1954638-4-eleanor.lin@realtek.com>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Low] The auxiliary driver's name is incorrectly initialized via `.driver = { .name = ... }`, causing the intended name to be silently overwritten.
- [Low] Missing `<linux/module.h>` include for module macros.
--
--- Patch [3]: [PATCH v11 03/11] reset: realtek: Add RTD1625 reset controller driver ---
commit 6ed7fb0b40e040995c4e1e41d96adfc82a758f96
Author: Cheng-Yu Lee <cylee12@realtek.com>
reset: realtek: Add RTD1625 reset controller driver
This adds support for the CRT and ISO domain reset controller on the Realtek
RTD1625 SoC. The reset driver is implemented as an auxiliary driver to handle
shared register space with the CRT and ISO clock controller.
> diff --git a/drivers/reset/realtek/reset-rtd1625.c b/drivers/reset/realtek/reset-rtd1625.c
> new file mode 100644
> index 0000000000000..fa87462f50e9d
> --- /dev/null
> +++ b/drivers/reset/realtek/reset-rtd1625.c
> @@ -0,0 +1,262 @@
> +// SPDX-License-Identifier: GPL-2.0-only
> +/*
> + * Copyright (C) 2026 Realtek Semiconductor Corporation
> + */
> +
> +#include <dt-bindings/reset/realtek,rtd1625.h>
> +#include <linux/auxiliary_bus.h>
> +#include <linux/array_size.h>
> +#include <linux/device.h>
> +#include <linux/errno.h>
> +#include <linux/slab.h>
> +#include "reset-rtk-common.h"
[Severity: Low]
This isn't a bug, but should <linux/module.h> be explicitly included here?
The code relies heavily on module macros like MODULE_DEVICE_TABLE,
module_auxiliary_driver, and MODULE_DESCRIPTION, which currently only build
because of an indirect include through <linux/device.h>.
[ ... ]
> +static struct auxiliary_driver rtd1625_reset_driver = {
> + .probe = rtd1625_reset_probe,
> + .id_table = rtd1625_reset_ids,
> + .driver = {
> + .name = "rtd1625-reset",
> + },
> +};
[Severity: Low]
Is this driver name initialization correct for the auxiliary bus? Setting the
name inside the embedded device_driver struct (.driver = { .name = ... })
causes the intended name to be ignored, as the auxiliary bus framework will
dynamically allocate and overwrite it with the module name.
Should this be initialized using the .name field of the parent
auxiliary_driver struct instead?
> +module_auxiliary_driver(rtd1625_reset_driver);
> +
> +MODULE_DESCRIPTION("Realtek RTD1625 Reset Controller Driver");
> +MODULE_LICENSE("GPL");
> +MODULE_IMPORT_NS("REALTEK_RESET");
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260728142806.1954638-1-eleanor.lin@realtek.com?part=3
next prev parent reply other threads:[~2026-07-28 14:51 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-28 14:27 [PATCH v11 00/11] clk / reset: realtek: Add RTD1625 clock and reset support Yu-Chun Lin
2026-07-28 14:27 ` [PATCH v11 01/11] dt-bindings: clock: Add Realtek RTD1625 Clock & Reset Controller Yu-Chun Lin
2026-07-28 14:27 ` [PATCH v11 02/11] reset: Add Realtek basic reset support Yu-Chun Lin
2026-07-28 14:27 ` [PATCH v11 03/11] reset: realtek: Add RTD1625 reset controller driver Yu-Chun Lin
2026-07-28 14:51 ` sashiko-bot [this message]
2026-07-28 14:27 ` [PATCH v11 04/11] clk: realtek: Introduce a common probe() Yu-Chun Lin
2026-07-28 14:41 ` sashiko-bot
2026-07-28 14:28 ` [PATCH v11 05/11] clk: realtek: Add support for phase locked loops (PLLs) Yu-Chun Lin
2026-07-28 14:41 ` sashiko-bot
2026-07-28 14:28 ` [PATCH v11 06/11] clk: realtek: Add support for gate clock Yu-Chun Lin
2026-07-28 14:28 ` [PATCH v11 07/11] clk: realtek: Add support for mux clock Yu-Chun Lin
2026-07-28 14:28 ` [PATCH v11 08/11] clk: realtek: Add support for MMC-tuned PLL clocks Yu-Chun Lin
2026-07-28 14:40 ` sashiko-bot
2026-07-28 14:28 ` [PATCH v11 09/11] clk: realtek: Add RTD1625-CRT clock controller driver Yu-Chun Lin
2026-07-28 14:28 ` [PATCH v11 10/11] clk: realtek: Add RTD1625-ISO " Yu-Chun Lin
2026-07-28 14:28 ` [PATCH v11 11/11] arm64: dts: realtek: Add clock support for RTD1625 Yu-Chun Lin
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=20260728145148.CC6D71F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=eleanor.lin@realtek.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox