Re: [PATCH] irqchip/sifive-plic: Respect mask state when setting affinity
From: Inochi Amaoto
Date: Fri Aug 08 2025 - 04:30:46 EST
On Fri, Aug 08, 2025 at 06:52:42AM +0200, Nam Cao wrote:
> Inochi Amaoto <inochiama@xxxxxxxxx> writes:
>
> > On Fri, Aug 08, 2025 at 06:01:39AM +0800, Inochi Amaoto wrote:
> > After some dig in, I found it is not very necessary to add this,
> > When all enable bit is clear, the PRIORIT register of irq is
> > not functional, so only umask the irq does not make sense. Only
> > calling irq_enable does enable the irq.
>
> Yeah, I contemplated doing this myself when I added the unmask to
> plic_irq_enable(), because it looks more natural that plic_irq_enable()
> and plic_irq_disable() are opposite. But I don't think it is necessary.
>
> > I prefer to add a comment to describe this behavior, instead of
> > adding this change in a separate patch.
>
> No preference from me.
>
OK, I will just remove this mask function.
Regards,
Inochi