Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Joseph Telaak" <joseph@telaak.dev>
Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org,
	robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v5 6/6] reset: Add Siflower SF19A2890 peripheral reset driver
Date: Tue, 24 Nov 2026 04:52:44 +0000	[thread overview]
Message-ID: <sashiko-outbox-230526@kernel.org> (raw)
In-Reply-To: <20261123-sf19a2890-sysm-v5-6-4ba44a0db17d@telaak.dev>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] reset: sf19a2890: unused sf19a2890_periphrst_ids when CONFIG_OF
  is disabled
--

commit eb59c76c1f50a7fd2445c0b31eb22084d7fc905e
Author: Joseph Telaak <joseph@telaak.dev>

reset: Add Siflower SF19A2890 peripheral reset driver

This commit adds an auxiliary-bus reset controller driver for the Siflower
SF19A2890 peripheral clock and reset managers.

Link: https://github.com/981213/linux/commit/37c81bebaf54

> diff --git a/drivers/reset/reset-sf19a2890-periphcrm.c b/drivers/reset/reset-sf19a2890-periphcrm.c
> new file mode 100644
> index 0000000000000..54b476237bd48
> --- /dev/null
> +++ b/drivers/reset/reset-sf19a2890-periphcrm.c

[ ... ]

> +static const struct of_device_id sf19a2890_periphrst_ids[] = {
> +	{ .compatible = "siflower,sf19a2890-gmac-crm", .data = &sf19a2890_gmac_rst },
> +	{ .compatible = "siflower,sf19a2890-gpio-crm", .data = &sf19a2890_single_rst },
> +	{ .compatible = "siflower,sf19a2890-i2c-crm", .data = &sf19a2890_single_rst },
> +	{ .compatible = "siflower,sf19a2890-pwm-crm", .data = &sf19a2890_single_rst },
> +	{ .compatible = "siflower,sf19a2890-rf-crm", .data = &sf19a2890_wlan_rst },
> +	{ .compatible = "siflower,sf19a2890-spi-crm", .data = &sf19a2890_spi_rst },
> +	{ .compatible = "siflower,sf19a2890-timer-crm", .data = &sf19a2890_single_rst },
> +	{ .compatible = "siflower,sf19a2890-uart-crm", .data = &sf19a2890_uart_rst },
> +	{ .compatible = "siflower,sf19a2890-usb-crm", .data = &sf19a2890_usb_rst },
> +	{ .compatible = "siflower,sf19a2890-wdt-crm", .data = &sf19a2890_single_rst },
> +	{ .compatible = "siflower,sf19a2890-wlan24-crm", .data = &sf19a2890_wlan_rst },
> +	{ .compatible = "siflower,sf19a2890-wlan5-crm", .data = &sf19a2890_wlan_rst },
> +	{ /* sentinel */ }
> +};
> +
> +static int sf19a2890_periphrst_probe(struct auxiliary_device *adev,
> +				     const struct auxiliary_device_id *id)
> +{
> +	const struct sf19a2890_periphrst_data *data;
> +	struct device *dev = &adev->dev;
> +	const struct of_device_id *match;
> +	struct sf19a2890_periphrst *rst;
> +
> +	/* The OF node is the parent's, so device_get_match_data() cannot be used */
> +	match = of_match_node(sf19a2890_periphrst_ids, dev->of_node);

[Severity: Low]
Will sf19a2890_periphrst_ids trigger a -Wunused-const-variable warning when
built with CONFIG_COMPILE_TEST=y and CONFIG_OF=n?  When CONFIG_OF is
disabled, of_match_node() expands to NULL without evaluating its first
argument, and sf19a2890_periphrst_ids is not referenced anywhere else.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261123-sf19a2890-sysm-v5-0-4ba44a0db17d@telaak.dev?part=6

      reply	other threads:[~2026-11-24  4:52 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24  4:41 [PATCH v5 0/6] clk: Add the Siflower SF19A2890 clock manager and peripheral clock and reset managers Joseph Telaak via B4 Relay
2026-11-24  4:41 ` [PATCH v5 1/6] MIPS: Add support for Siflower MIPS SoCs Joseph Telaak via B4 Relay
2026-11-24  4:41 ` [PATCH v5 2/6] dt-bindings: clock: Add Siflower SF19A2890 clock manager Joseph Telaak via B4 Relay
2026-11-24  4:41 ` [PATCH v5 3/6] clk: siflower: Add SF19A2890 clock manager driver Joseph Telaak via B4 Relay
2026-11-24  4:58   ` sashiko-bot
2026-11-24  4:41 ` [PATCH v5 4/6] dt-bindings: clock: Add Siflower SF19A2890 peripheral clock/reset managers Joseph Telaak via B4 Relay
2026-11-24  4:41 ` [PATCH v5 5/6] clk: siflower: Add SF19A2890 peripheral clock driver Joseph Telaak via B4 Relay
2026-11-24  4:41 ` [PATCH v5 6/6] reset: Add Siflower SF19A2890 peripheral reset driver Joseph Telaak via B4 Relay
2026-11-24  4:52   ` sashiko-bot [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=sashiko-outbox-230526@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=joseph@telaak.dev \
    --cc=linux-clk@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox