From: Thomas Gleixner <tglx@linutronix.de>
To: Biju Das <biju.das.jz@bp.renesas.com>
Cc: Biju Das <biju.das.jz@bp.renesas.com>,
Marc Zyngier <maz@kernel.org>,
Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>,
Geert Uytterhoeven <geert+renesas@glider.be>,
Biju Das <biju.das.au@gmail.com>,
linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH v2 4/5] irqchip/renesas-rzg2l: Fix spurious IRQ
Date: Wed, 13 Mar 2024 15:38:29 +0100 [thread overview]
Message-ID: <87msr2nqmy.ffs@tglx> (raw)
In-Reply-To: <20240305183922.138727-5-biju.das.jz@bp.renesas.com>
On Tue, Mar 05 2024 at 18:39, Biju Das wrote:
Sorry. I just noticed that this series fell through the cracks.
> static int rzg2l_irq_set_type(struct irq_data *d, unsigned int type)
> {
> - unsigned int hw_irq = irqd_to_hwirq(d) - IRQC_IRQ_START;
> struct rzg2l_irqc_priv *priv = irq_data_to_priv(d);
> + unsigned int hwirq = irqd_to_hwirq(d);
> + u32 iitseln = hwirq - IRQC_IRQ_START;
> + bool clear_irq_int = false;
> + unsigned long flags;
> u16 sense, tmp;
>
> switch (type & IRQ_TYPE_SENSE_MASK) {
> @@ -192,37 +195,59 @@ static int rzg2l_irq_set_type(struct irq_data *d, unsigned int type)
>
> case IRQ_TYPE_EDGE_FALLING:
> sense = IITSR_IITSEL_EDGE_FALLING;
> + clear_irq_int = true;
> break;
>
> case IRQ_TYPE_EDGE_RISING:
> sense = IITSR_IITSEL_EDGE_RISING;
> + clear_irq_int = true;
> break;
>
> case IRQ_TYPE_EDGE_BOTH:
> sense = IITSR_IITSEL_EDGE_BOTH;
> + clear_irq_int = true;
> break;
>
> default:
> return -EINVAL;
> }
>
> - raw_spin_lock(&priv->lock);
> + raw_spin_lock_irqsave(&priv->lock, flags);
irq_set_type() is always called with irq_desc::lock held and
interrupts disabled. What's exactly the point of this change?
next prev parent reply other threads:[~2024-03-13 14:38 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-05 18:39 [PATCH v2 0/5] Fix spurious TINT IRQ and enhancements Biju Das
2024-03-05 18:39 ` [PATCH v2 1/5] irqchip/renesas-rzg2l: Flush posted write Biju Das
2024-03-05 18:39 ` [PATCH v2 2/5] irqchip/renesas-rzg2l: Rename rzg2l_tint_eoi() Biju Das
2024-03-05 18:39 ` [PATCH v2 3/5] irqchip/renesas-rzg2l: Rename rzg2l_irq_eoi() Biju Das
2024-03-05 18:39 ` [PATCH v2 4/5] irqchip/renesas-rzg2l: Fix spurious IRQ Biju Das
2024-03-13 14:38 ` Thomas Gleixner [this message]
2024-03-13 14:58 ` Biju Das
2024-03-13 15:42 ` Thomas Gleixner
2024-03-13 16:21 ` Biju Das
2024-03-05 18:39 ` [PATCH v2 5/5] irqchip/renesas-rzg2l: Use TIEN for enable/disable Biju Das
2024-03-13 15:40 ` Thomas Gleixner
2024-03-13 15:59 ` Biju Das
2024-03-14 8:59 ` Thomas Gleixner
2024-03-14 9:07 ` Biju Das
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=87msr2nqmy.ffs@tglx \
--to=tglx@linutronix.de \
--cc=biju.das.au@gmail.com \
--cc=biju.das.jz@bp.renesas.com \
--cc=geert+renesas@glider.be \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=maz@kernel.org \
--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 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.