Эх сурвалжийг харах

sh: intc: Fixed resume from hibernation

This patch fixes the resume from hibernation
in the intc sysdev device when it manages 'redirect' irq

Signed-off-by: Francesco Virlinzi <francesco.virlinzi@st.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Francesco VIRLINZI 16 жил өмнө
parent
commit
87a705dde4

+ 2 - 0
drivers/sh/intc.c

@@ -806,6 +806,8 @@ static int intc_suspend(struct sys_device *dev, pm_message_t state)
 		if (d->state.event != PM_EVENT_FREEZE)
 		if (d->state.event != PM_EVENT_FREEZE)
 			break;
 			break;
 		for_each_irq_desc(irq, desc) {
 		for_each_irq_desc(irq, desc) {
+			if (desc->handle_irq == intc_redirect_irq)
+				continue
 			if (desc->chip != &d->chip)
 			if (desc->chip != &d->chip)
 				continue;
 				continue;
 			if (desc->status & IRQ_DISABLED)
 			if (desc->status & IRQ_DISABLED)