On Sat, Dec 23, 2023 at 4:19 PM Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxx> wrote: > On 22/12/2023 08:58, Tzuyi Chang wrote: ... > > + raw_spin_lock_irqsave(&data->lock, flags); > > Why are you using raw spinlock? This question applies to entire driver. If you want to have your IRQ chip to work in the RT kernel, you need a real spinlock. > > + raw_spin_unlock_irqrestore(&data->lock, flags); -- With Best Regards, Andy Shevchenko