From: Pavel Machek <pavel@denx.de>
To: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
Cc: cip-dev@lists.cip-project.org,
Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>,
Biju Das <biju.das.jz@bp.renesas.com>,
Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>,
tomm.merciai@gmail.com
Subject: Re: [PATCH 6.12.y-cip 05/18] irqchip: Add RZ/V2H(P) Interrupt Control Unit (ICU) driver
Date: Mon, 7 Jul 2025 11:37:53 +0200 [thread overview]
Message-ID: <aGuVcZ3Z/Ud5j9G1@duo.ucw.cz> (raw)
In-Reply-To: <20250704090724.669848-6-tommaso.merciai.xr@bp.renesas.com>
[-- Attachment #1: Type: text/plain, Size: 1769 bytes --]
Hi!
> From: Fabrizio Castro <fabrizio.castro.jz@renesas.com>
>
> commit 0d7605e75ac2d8620929148f932cde54746c485f upstream.
>
> Add driver for the Renesas RZ/V2H(P) Interrupt Control Unit (ICU).
>
> This driver supports the external interrupts NMI, IRQn, and TINTn.
>
> +++ b/drivers/irqchip/irq-renesas-rzv2h.c
> +static void rzv2h_clear_irq_int(struct rzv2h_icu_priv *priv, unsigned int hwirq)
> +{
> + unsigned int irq_nr = hwirq - ICU_IRQ_START;
> + u32 isctr, iitsr, iitsel;
> + u32 bit = BIT(irq_nr);
> +
> + isctr = readl_relaxed(priv->base + ICU_ISCTR);
> + iitsr = readl_relaxed(priv->base + ICU_IITSR);
> + iitsel = ICU_IITSR_IITSEL_GET(iitsr, irq_nr);
> +
> + /*
> + * When level sensing is used, the interrupt flag gets automatically cleared when the
> + * interrupt signal is de-asserted by the source of the interrupt request, therefore clear
> + * the interrupt only for edge triggered interrupts.
> + */
I'd wrap this at 80 columns.
> + titsel = ICU_TITSR_TITSEL_GET(titsr, titsel_n);
> +
> + /*
> + * Writing 1 to the corresponding flag from register ICU_TSCTR only has effect if
> + * TSTATn = 1b and if it's a rising edge or a falling edge interrupt.
> + */
And this.
> + /*
> + * coccicheck complains about a missing put_device call before returning, but it's a false
> + * positive. We still need &pdev->dev after successfully returning from this function.
> + */
> + return 0;
cocci -> Cocci... but more seriously people are submitting stable
patches to silence checkers, so this may be worth finding some
workaround.
Best regards,
Pavel
--
In cooperation with DENX Software Engineering GmbH, HRB 165235 Munich,
Office: Kirchenstr.5, D-82194 Groebenzell, Germany
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
next prev parent reply other threads:[~2025-07-07 9:38 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-04 9:07 [PATCH 6.12.y-cip 00/18] Add Support for RZ/G3E ICU Tommaso Merciai
2025-07-04 9:07 ` [PATCH 6.12.y-cip 01/18] reset: replace boolean parameters with flags parameter Tommaso Merciai
2025-07-04 9:07 ` [PATCH 6.12.y-cip 02/18] reset: Add devres helpers to request pre-deasserted reset controls Tommaso Merciai
2025-07-04 9:07 ` [PATCH 6.12.y-cip 03/18] dt-bindings: interrupt-controller: Add Renesas RZ/V2H(P) Interrupt Controller Tommaso Merciai
2025-07-07 9:35 ` Pavel Machek
2025-07-04 9:07 ` [PATCH 6.12.y-cip 04/18] dt-bindings: interrupt-controller: renesas,rzv2h-icu: Document RZ/G3E SoC Tommaso Merciai
2025-07-04 9:07 ` [PATCH 6.12.y-cip 05/18] irqchip: Add RZ/V2H(P) Interrupt Control Unit (ICU) driver Tommaso Merciai
2025-07-07 9:37 ` Pavel Machek [this message]
2025-07-04 9:07 ` [PATCH 6.12.y-cip 06/18] irqchip/renesas-rzv2h: Fix wrong variable usage in rzv2h_tint_set_type() Tommaso Merciai
2025-07-04 9:07 ` [PATCH 6.12.y-cip 07/18] irqchip/renesas-rzv2h: Drop irqchip from struct rzv2h_icu_priv Tommaso Merciai
2025-07-04 9:07 ` [PATCH 6.12.y-cip 08/18] irqchip/renesas-rzv2h: Simplify rzv2h_icu_init() Tommaso Merciai
2025-07-04 9:07 ` [PATCH 6.12.y-cip 09/18] irqchip/renesas-rzv2h: Use devm_reset_control_get_exclusive_deasserted() Tommaso Merciai
2025-07-04 9:07 ` [PATCH 6.12.y-cip 10/18] irqchip/renesas-rzv2h: Use devm_pm_runtime_enable() Tommaso Merciai
2025-07-04 9:07 ` [PATCH 6.12.y-cip 11/18] irqchip/renesas-rzv2h: Add struct rzv2h_hw_info with t_offs variable Tommaso Merciai
2025-07-04 9:07 ` [PATCH 6.12.y-cip 12/18] irqchip/renesas-rzv2h: Add max_tssel to struct rzv2h_hw_info Tommaso Merciai
2025-07-04 9:07 ` [PATCH 6.12.y-cip 13/18] irqchip/renesas-rzv2h: Add field_width " Tommaso Merciai
2025-07-04 9:07 ` [PATCH 6.12.y-cip 14/18] irqchip/renesas-rzv2h: Update TSSR_TIEN macro Tommaso Merciai
2025-07-04 9:07 ` [PATCH 6.12.y-cip 15/18] irqchip/renesas-rzv2h: Update macros ICU_TSSR_TSSEL_{MASK,PREP} Tommaso Merciai
2025-07-04 9:07 ` [PATCH 6.12.y-cip 16/18] irqchip/renesas-rzv2h: Add RZ/G3E support Tommaso Merciai
2025-07-04 9:07 ` [PATCH 6.12.y-cip 17/18] irqchip/renesas-rzv2h: Prevent TINT spurious interrupt Tommaso Merciai
2025-07-04 9:07 ` [PATCH 6.12.y-cip 18/18] arm64: dts: renesas: r9a09g047: Add ICU node Tommaso Merciai
2025-07-04 18:12 ` [PATCH 6.12.y-cip 00/18] Add Support for RZ/G3E ICU Pavel Machek
2025-07-07 8:49 ` Tommaso Merciai
2025-07-07 9:33 ` Pavel Machek
2025-07-07 5:00 ` nobuhiro1.iwamatsu
2025-07-07 9:00 ` Tommaso Merciai
2025-07-07 10:44 ` Pavel Machek
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=aGuVcZ3Z/Ud5j9G1@duo.ucw.cz \
--to=pavel@denx.de \
--cc=biju.das.jz@bp.renesas.com \
--cc=cip-dev@lists.cip-project.org \
--cc=nobuhiro1.iwamatsu@toshiba.co.jp \
--cc=prabhakar.mahadev-lad.rj@bp.renesas.com \
--cc=tomm.merciai@gmail.com \
--cc=tommaso.merciai.xr@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