irq updates for 4.4
Linus,
please pull the latest irq-urgent-for-linus git tree from:
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq-urgent-for-linus
A single regression fix to restore the wakeup behaviour of chained interrupts.
Thanks,
tglx
------------------>
Grygorii Strashko (1):
genirq/PM: Restore system wake up from chained interrupts
kernel/irq/internals.h | 5 +++++ kernel/irq/pm.c | 3 ++- kernel/irq/proc.c | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-)
kernel/irq/internals.h +5 -0
@@ -199,6 +199,11 @@ static inline int irq_desc_get_node(struct irq_desc *desc)return irq_common_data_get_node (&desc->irq_common_data); } +static inline int irq_desc_is_chained (struct irq_desc *desc) +{ +return (desc->action && desc->action == &chained_action); +} +#ifdef CONFIG_PM_SLEEP bool irq_pm_check_wakeup (struct irq_desc *desc);void irq_pm_install_action (struct irq_desc *desc,struct irqaction *action);
kernel/irq/pm.c +2 -1
@@ -70,7 +70,8 @@ void irq_pm_remove_action(struct irq_desc *desc, struct irqaction *action)static bool suspend_device_irq (struct irq_desc *desc) { -if (!desc->action || desc->no_suspend_depth) +if (!desc->action ||irq_desc_is_chained (desc) || + desc->no_suspend_depth)return false;if (irqd_is_wakeup_set (&desc->irq_data)) {
kernel/irq/proc.c +1 -1
@@ -475,7 +475,7 @@ int show_interrupts(struct seq_file *p, void *v)for_each_online_cpu (j) any_count |=kstat_irqs_cpu (i, j); action = desc->action; -if ((!action || action == &chained_action) && !any_count) +if ((!action ||irq_desc_is_chained (desc)) && !any_count) goto out;seq_printf (p,"%*d: " , prec, i);