Re: [PATCH] irqchip/sifive-plic: Respect mask state when setting affinity
From: Nam Cao
Date: Fri Aug 08 2025 - 00:53:09 EST
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.
Nam