Re: [PATCH v1 2/2] gpio: tegra: Use raw_spinlock

From: Andy Shevchenko
Date: Wed Nov 04 2020 - 09:46:53 EST


On Wed, Nov 4, 2020 at 3:27 PM Dmitry Osipenko <digetx@xxxxxxxxx> wrote:
>
> Use raw_spinlock in order to fix spurious messages about invalid context
> when spinlock debugging is enabled. This happens because there is a legit
> nested raw_spinlock->spinlock locking which debug code can't recognize and
> handle.

This sounds like papering over a problem that exists somewhere else.

What I would rather make as a selling point is that raw spin locks are
necessary to be in the RT kernel for IRQ chips.

> Tested-by: Peter Geis <pgwipeout@xxxxxxxxx>
> Signed-off-by: Dmitry Osipenko <digetx@xxxxxxxxx>

--
With Best Regards,
Andy Shevchenko