From: Mark Brown <broonie@kernel.org>
To: Fabrizio Castro <fabrizio.castro.jz@renesas.com>
Cc: Philipp Zabel <p.zabel@pengutronix.de>,
Geert Uytterhoeven <geert+renesas@glider.be>,
Magnus Damm <magnus.damm@gmail.com>,
linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org,
linux-renesas-soc@vger.kernel.org,
Biju Das <biju.das.jz@bp.renesas.com>,
Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Subject: Re: [PATCH 3/6] spi: Add driver for the RZ/V2H(P) RSPI IP
Date: Wed, 25 Jun 2025 20:09:15 +0100 [thread overview]
Message-ID: <b4649385-ee50-499b-a965-e08f04fe0d3b@sirena.org.uk> (raw)
In-Reply-To: <20250624192304.338979-4-fabrizio.castro.jz@renesas.com>
[-- Attachment #1: Type: text/plain, Size: 1132 bytes --]
On Tue, Jun 24, 2025 at 08:23:01PM +0100, Fabrizio Castro wrote:
> +static int rzv2h_rspi_unprepare_message(struct spi_controller *ctlr,
> + struct spi_message *message)
> +{
> + struct rzv2h_rspi_priv *rspi = spi_controller_get_devdata(ctlr);
> +
> + rzv2h_rspi_spe_disable(rspi);
> + rzv2h_rspi_clear_fifos(rspi);
A bit interesting that we need to clear the FIFOs, but it's just one
register write so probably not worth worrying about.
> + ret = devm_clk_bulk_get(dev, RSPI_CLK_NUM, rspi->clks);
> + if (ret)
> + return dev_err_probe(dev, ret, "cannot get clocks\n");
> + ret = devm_request_irq(dev, irq_rx, rzv2h_rx_irq_handler, 0,
> + dev_name(dev), rspi);
> + if (ret)
> + return dev_err_probe(dev, ret, "cannot request `rx` IRQ\n");
> +
> + ret = clk_bulk_prepare_enable(RSPI_CLK_NUM, rspi->clks);
Are you sure that the interrupt handler is safe with the IP in reset and
clocks disabled...
> + init_waitqueue_head(&rspi->wait);
...and the wakequeue head it wakes up not yet initialised? This is also
a concern during unregistration where devm things will be unwound after
the remove() function has run.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2025-06-25 19:09 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-24 19:22 [PATCH 0/6] Add RSPI support for RZ/V2H Fabrizio Castro
2025-06-24 19:22 ` [PATCH 1/6] clk: renesas: r9a09g057: Add entries for the RSPIs Fabrizio Castro
2025-06-24 19:37 ` Biju Das
2025-07-01 13:17 ` Geert Uytterhoeven
2025-06-24 19:23 ` [PATCH 2/6] spi: dt-bindings: Document the RZ/V2H(P) RSPI Fabrizio Castro
2025-06-27 20:28 ` Rob Herring (Arm)
2025-07-01 13:29 ` Geert Uytterhoeven
2025-06-24 19:23 ` [PATCH 3/6] spi: Add driver for the RZ/V2H(P) RSPI IP Fabrizio Castro
2025-06-25 10:19 ` Biju Das
2025-07-04 14:14 ` Fabrizio Castro
2025-06-25 11:32 ` kernel test robot
2025-06-25 19:09 ` Mark Brown [this message]
2025-07-04 14:17 ` Fabrizio Castro
2025-06-24 19:23 ` [PATCH 4/6] MAINTAINERS: Add entries for the RZ/V2H(P) RSPI Fabrizio Castro
2025-07-01 13:30 ` Geert Uytterhoeven
2025-06-24 19:23 ` [PATCH 5/6] arm64: defconfig: Enable the RZ/V2H(P) RSPI driver Fabrizio Castro
2025-07-01 13:31 ` Geert Uytterhoeven
2025-06-24 19:23 ` [PATCH 6/6] arm64: dts: renesas: r9a09g057: Add RSPI nodes Fabrizio Castro
2025-07-01 13:32 ` Geert Uytterhoeven
2025-06-25 7:59 ` [PATCH 0/6] Add RSPI support for RZ/V2H Chris Paterson
2025-06-25 8:21 ` Fabrizio Castro
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=b4649385-ee50-499b-a965-e08f04fe0d3b@sirena.org.uk \
--to=broonie@kernel.org \
--cc=biju.das.jz@bp.renesas.com \
--cc=fabrizio.castro.jz@renesas.com \
--cc=geert+renesas@glider.be \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
--cc=magnus.damm@gmail.com \
--cc=p.zabel@pengutronix.de \
--cc=prabhakar.mahadev-lad.rj@bp.renesas.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
all inboxes | Powered by JetHome®