From: Greg Kroah-Hartman Date: Sat, 31 Mar 2018 16:10:21 +0000 (+0200) Subject: 4.9-stable patches X-Git-Tag: v4.14.32~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0d3a27ea446fe19d932edf671f149f1492ea08f4;p=thirdparty%2Fkernel%2Fstable-queue.git 4.9-stable patches added patches: revert-genirq-use-irqd_get_trigger_type-to-compare-the.patch --- diff --git a/queue-4.9/revert-genirq-use-irqd_get_trigger_type-to-compare-the.patch b/queue-4.9/revert-genirq-use-irqd_get_trigger_type-to-compare-the.patch new file mode 100644 index 00000000000..e93e32530a9 --- /dev/null +++ b/queue-4.9/revert-genirq-use-irqd_get_trigger_type-to-compare-the.patch @@ -0,0 +1,37 @@ +From 5512cca5c518c20037b10369a4725327202dd80b Mon Sep 17 00:00:00 2001 +From: Greg Kroah-Hartman +Date: Fri, 30 Mar 2018 10:53:44 +0200 +Subject: [PATCH] Revert "genirq: Use irqd_get_trigger_type to compare the + trigger type for shared IRQs" + +This reverts commit f2596a9808acfd02ce1ee389f0e1c37e64aec5f6 which is +commit 382bd4de61827dbaaf5fb4fb7b1f4be4a86505e7 upstream. + +It causes too many problems with the stable tree, and would require too +many other things to be backported, so just revert it. + +Reported-by: Guenter Roeck +Cc: Thomas Gleixner +Cc: Hans de Goede +Cc: Marc Zyngier +Cc: Thomas Gleixner +Cc: Sasha Levin +Signed-off-by: Greg Kroah-Hartman +--- + kernel/irq/manage.c | 4 +--- + 1 file changed, 1 insertion(+), 3 deletions(-) + +--- a/kernel/irq/manage.c ++++ b/kernel/irq/manage.c +@@ -1210,10 +1210,8 @@ __setup_irq(unsigned int irq, struct irq + * set the trigger type must match. Also all must + * agree on ONESHOT. + */ +- unsigned int oldtype = irqd_get_trigger_type(&desc->irq_data); +- + if (!((old->flags & new->flags) & IRQF_SHARED) || +- (oldtype != (new->flags & IRQF_TRIGGER_MASK)) || ++ ((old->flags ^ new->flags) & IRQF_TRIGGER_MASK) || + ((old->flags ^ new->flags) & IRQF_ONESHOT)) + goto mismatch; +