Commit 18828d7
committed
xpadneo, rumble: Properly save and restore IRQ state during locking
A previous refactor to scoped guards accidentally changed locking
semantics from `spinlock_irqsave/irqrestore` to `spinlock_irq`.
With `spinlock_irq`, IRQs are unconditionally enabled on unlock.
In this path that can re-enable IRQs too early while outer input/FF
locking still expects them disabled, allowing ff-memless timer re-entry
and resulting in a hard lockup.
Switch rumble locking to `spinlock_irqsave` so the previous IRQ state
is restored correctly.
Reported hard lockup trace (excerpt):
watchdog: CPU6: Watchdog detected hard LOCKUP on cpu 6
_raw_spin_lock_irqsave+0x3d/0x50
input_event+0x41/0x90
xpadneo_events_event+0x225/0x350 [hid_xpadneo]
Fixes: ee5c0d4 ("xpadneo, rumble: Migrate to more modern scoped locks")
Fixes: #596
Signed-off-by: Kai Krakow <kai@kaishome.de>1 parent c36ef91 commit 18828d7
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
| 208 | + | |
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| |||
0 commit comments