Skip to content

Commit ec7099f

Browse files
Villemoesbrgl
authored andcommitted
Revert "gpio: mpc8xxx: change the gpio interrupt flags."
This reverts commit 3d5bfbd. When booting with threadirqs, it causes a splat WARNING: CPU: 0 PID: 29 at kernel/irq/handle.c:159 __handle_irq_event_percpu+0x1ec/0x27c irq 66 handler irq_default_primary_handler+0x0/0x1c enabled interrupts That splat later went away with commit 81e2073 ("genirq: Disable interrupts for force threaded handlers"), which got backported to -stable. However, when running an -rt kernel, the splat still exists. Moreover, quoting Thomas Gleixner [1] But 3d5bfbd ("gpio: mpc8xxx: change the gpio interrupt flags.") has nothing to do with that: "Delete the interrupt IRQF_NO_THREAD flags in order to gpio interrupts can be threaded to allow high-priority processes to preempt." This changelog is blatantly wrong. In mainline forced irq threads have always been invoked with softirqs disabled, which obviously makes them non-preemptible. So the patch didn't even do what its commit log said. [1] https://lore.kernel.org/lkml/[email protected]/ Cc: [email protected] # v5.9+ Signed-off-by: Rasmus Villemoes <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent e73f0f0 commit ec7099f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpio/gpio-mpc8xxx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ static int mpc8xxx_probe(struct platform_device *pdev)
405405

406406
ret = devm_request_irq(&pdev->dev, mpc8xxx_gc->irqn,
407407
mpc8xxx_gpio_irq_cascade,
408-
IRQF_SHARED, "gpio-cascade",
408+
IRQF_NO_THREAD | IRQF_SHARED, "gpio-cascade",
409409
mpc8xxx_gc);
410410
if (ret) {
411411
dev_err(&pdev->dev,

0 commit comments

Comments
 (0)