Skip to content

Input: gpio-keys - Fixes for interrupt callbacks

Gatien Chevallier linux-input linux-rt-devel lkml 2 versions – Applied

Status from this message: Applied, thank you.

Get series with b4
b4 am [email protected] change-id 20250526-gpio_keys_preempt_rt-10619c8fa916

Versions newest first

  1. v2 Latest2 patches 1 replyApplied
  2. v11 patch 4 repliesSuperseded

Changes in v2 from the cover letter

- Split fixes into two commits
- Use guard() macro to handle spinlock
- Link to v1: https://lore.kernel.org/r/[email protected]

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2Input: gpio-keys - fix a sleep while atomic with PREEMPT_RTdrivers/input/keyboard/gpio_keys.c+2 -20 replies
2/2Input: gpio-keys - fix possible concurrent access in gpio_keys_irq_timer()drivers/input/keyboard/gpio_keys.c+2 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] Input: gpio-keys - Fixes for interrupt callbacks

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

---
Changes in v2:
- Split fixes into two commits
- Use guard() macro to handle spinlock
- Link to v1: https://lore.kernel.org/r/[email protected]

---
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,

Signature · 1 line
Gatien Chevallier <[email protected]>