commit: http://blackfin.uclinux.org/git/?p=linux-kernel;a=commitdiff;h=b503b27d16a72102015af269575dd482622b09bb
branch: http://blackfin.uclinux.org/git/?p=linux-kernel;a=shortlog;h=refs/heads/trunk

It seems the input pint id may not be correct and cause pm
operation fails to resume occasionally.

Signed-off-by: Sonic Zhang <[email protected]>
---
 drivers/gpio/gpio-adi2.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/gpio/gpio-adi2.c b/drivers/gpio/gpio-adi2.c
index 20ac95a..46d5e65 100644
--- a/drivers/gpio/gpio-adi2.c
+++ b/drivers/gpio/gpio-adi2.c
@@ -296,7 +296,6 @@ static struct adi_pm_pint_save save_pint_reg[NR_PINT_SYS_IRQS];
 
 static int adi_gpio_set_wake(struct irq_data *d, unsigned int state)
 {
-#ifndef SEC_GCTL
 	u32 pint_irq;
 	u32 pint_val = irq2pint_lut[d->irq - SYS_IRQS];
 	u32 bank = PINT_2_BANK(pint_val);
@@ -318,6 +317,7 @@ static int adi_gpio_set_wake(struct irq_data *d, unsigned int state)
 		return -EINVAL;
 	}
 
+#ifndef SEC_GCTL
 	adi_internal_set_wake(pint_irq, state);
 #endif
 
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to