linux-rt-devel.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Input: gpio-keys - Fixes for interrupt callbacks
@ 2025-05-28  8:50 Gatien Chevallier
  2025-05-28  8:50 ` [PATCH v2 1/2] Input: gpio-keys - fix a sleep while atomic with PREEMPT_RT Gatien Chevallier
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Gatien Chevallier @ 2025-05-28  8:50 UTC (permalink / raw)
  To: Dmitry Torokhov, Sebastian Andrzej Siewior, Clark Williams,
	Steven Rostedt, Paul Cercueil
  Cc: linux-input, linux-kernel, linux-rt-devel, Gatien Chevallier,
	fabrice.gasnier

This patchset fixes a "BUG: sleeping function called from invalid
context" when CFG_PREEMPT_RT is enabled and a possible concurrent access
on button data between gpio_keys_irq_timer() and gpio_keys_irq_isr().

Signed-off-by: Gatien Chevallier <gatien.chevallier@foss.st.com>
---
Changes in v2:
- Split fixes into two commits
- Use guard() macro to handle spinlock
- Link to v1: https://lore.kernel.org/r/20250526-gpio_keys_preempt_rt-v1-1-09ddadf8e19d@foss.st.com

---
Fabrice Gasnier (1):
      Input: gpio-keys - fix a sleep while atomic with PREEMPT_RT

Gatien Chevallier (1):
      Input: gpio-keys - fix possible concurrent access in gpio_keys_irq_timer()

 drivers/input/keyboard/gpio_keys.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
base-commit: 0ff41df1cb268fc69e703a08a57ee14ae967d0ca
change-id: 20250526-gpio_keys_preempt_rt-10619c8fa916

Best regards,
-- 
Gatien Chevallier <gatien.chevallier@foss.st.com>


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

end of thread, other threads:[~2025-05-30 23:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-28  8:50 [PATCH v2 0/2] Input: gpio-keys - Fixes for interrupt callbacks Gatien Chevallier
2025-05-28  8:50 ` [PATCH v2 1/2] Input: gpio-keys - fix a sleep while atomic with PREEMPT_RT Gatien Chevallier
2025-05-28  8:50 ` [PATCH v2 2/2] Input: gpio-keys - fix possible concurrent access in gpio_keys_irq_timer() Gatien Chevallier
2025-05-30 23:12 ` [PATCH v2 0/2] Input: gpio-keys - Fixes for interrupt callbacks Dmitry Torokhov

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).