Skip to content

Commit fe09249

Browse files
DhruvaG2000Bartosz Golaszewski
authored andcommitted
gpio: davinci: Do not clear the bank intr enable bit in save_context
The interrupt enable bits might be set if we want to use the GPIO as wakeup source. Clearing this will mean disabling of interrupts in the GPIO banks that we may want to wakeup from. Thus remove the line that was clearing this bit from the driver's save context function. Cc: Devarsh Thakkar <[email protected]> Fixes: 0651a73 ("gpio: davinci: Add support for system suspend/resume PM") Signed-off-by: Dhruva Gole <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Acked-by: Keerthy <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent d49765b commit fe09249

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/gpio/gpio-davinci.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -641,9 +641,6 @@ static void davinci_gpio_save_context(struct davinci_gpio_controller *chips,
641641
context->set_falling = readl_relaxed(&g->set_falling);
642642
}
643643

644-
/* Clear Bank interrupt enable bit */
645-
writel_relaxed(0, base + BINTEN);
646-
647644
/* Clear all interrupt status registers */
648645
writel_relaxed(GENMASK(31, 0), &g->intstat);
649646
}

0 commit comments

Comments
 (0)