mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [RFC PATCH 1/2] gpio: davinci: Do not clear the bank intr enable bit in save_context
@ 2023-03-23 12:29 Dhruva Gole
  2023-03-23 12:29 ` [RFC PATCH 2/2] gpio: davinci: Add irq chip flag to skip set wake Dhruva Gole
  2023-03-28 13:29 ` [RFC PATCH 1/2] gpio: davinci: Do not clear the bank intr enable bit in save_context Linus Walleij
  0 siblings, 2 replies; 5+ messages in thread
From: Dhruva Gole @ 2023-03-23 12:29 UTC (permalink / raw)
  To: Keerthy
  Cc: Vibhore Vardhan, Dhruva Gole, Tony Lindgren, Vignesh,
	Linus Walleij, Bartosz Golaszewski, linux-gpio, linux-kernel,
	Devarsh Thakkar

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.

Fixes: 0651a730924b ("gpio: davinci: Add support for system suspend/resume PM")
Cc: Devarsh Thakkar <devarsht@ti.com>
Signed-off-by: Dhruva Gole <d-gole@ti.com>
---
 drivers/gpio/gpio-davinci.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/gpio/gpio-davinci.c b/drivers/gpio/gpio-davinci.c
index 7fc83057990a..d7595b39e8c4 100644
--- a/drivers/gpio/gpio-davinci.c
+++ b/drivers/gpio/gpio-davinci.c
@@ -639,9 +639,6 @@ static void davinci_gpio_save_context(struct davinci_gpio_controller *chips,
 		context->set_falling = readl_relaxed(&g->set_falling);
 	}
 
-	/* Clear Bank interrupt enable bit */
-	writel_relaxed(0, base + BINTEN);
-
 	/* Clear all interrupt status registers */
 	writel_relaxed(GENMASK(31, 0), &g->intstat);
 }
-- 
2.25.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-03-30  3:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-23 12:29 [RFC PATCH 1/2] gpio: davinci: Do not clear the bank intr enable bit in save_context Dhruva Gole
2023-03-23 12:29 ` [RFC PATCH 2/2] gpio: davinci: Add irq chip flag to skip set wake Dhruva Gole
2023-03-28 13:29   ` Linus Walleij
2023-03-28 13:29 ` [RFC PATCH 1/2] gpio: davinci: Do not clear the bank intr enable bit in save_context Linus Walleij
2023-03-30  3:04   ` J, KEERTHY

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®