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

Andy Shevchenko
2020-11-04T14:46:53Z

On Wed, Nov 4, 2020 at 3:27 PM Dmitry Osipenko <digetx@gmail.com> 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@gmail.com>
> Signed-off-by: Dmitry Osipenko <digetx@gmail.com>

--
With Best Regards,
Andy Shevchenko