linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Replace raw_spin_lock_irqsave with raw_spin_lock
@ 2021-02-12 16:35 Andy Shevchenko
  2021-02-12 16:42 ` Andy Shevchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Andy Shevchenko @ 2021-02-12 16:35 UTC (permalink / raw)
  To: linux-gpio, Mika Westerberg; +Cc: Linus Walleij, Imre Deak

Hi, Mika!

There is an interesting discussion [1] going on about necessity of the
_irqsave/_irqrestore variants of spin lock in the IRQ handler.

It appears that in our driver(s) we have also such variants of spin locks in
use. Do you have any idea why is it so?

A bonus question, why do we use _NO_THREAD flag explicitly as per Thomas [2]
this won't work well with RT kernels?

[1]: https://lore.kernel.org/linux-gpio/1612774577-55943-1-git-send-email-luojiaxing@huawei.com/T/#u
[2]: https://lore.kernel.org/linux-i2c/87zh2s8buh.fsf@nanos.tec.linutronix.de/

-- 
With Best Regards,
Andy Shevchenko



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-02-12 16:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-12 16:35 Replace raw_spin_lock_irqsave with raw_spin_lock Andy Shevchenko
2021-02-12 16:42 ` Andy Shevchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).