Re: [PATCH v4 2/2] Add GPIO support for Realtek DHC(Digital Home Center) RTD SoCs.

From: Andy Shevchenko
Date: Mon Dec 25 2023 - 14:53:14 EST


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