linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] pinctrl: single: call pcs_soc->rearm() whenever IRQ mask is changed
@ 2013-10-11 16:13 Roger Quadros
  2013-10-11 16:19 ` Linus Walleij
  2013-10-11 17:21 ` Tony Lindgren
  0 siblings, 2 replies; 9+ messages in thread
From: Roger Quadros @ 2013-10-11 16:13 UTC (permalink / raw)
  To: tony
  Cc: linus.walleij, grygorii.strashko, peter.ujfalusi, haojian.zhuang,
	bcousson, linux-arm-kernel, linux-omap, Roger Quadros

On OMAPs the IO ring must be rearmed each time the pad wakeup
configuration is changed. So call pcs_soc->rearm() from
pcs_irq_set().

Signed-off-by: Roger Quadros <rogerq@ti.com>
---
 drivers/pinctrl/pinctrl-single.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/pinctrl/pinctrl-single.c b/drivers/pinctrl/pinctrl-single.c
index c2aada7..1800e47 100644
--- a/drivers/pinctrl/pinctrl-single.c
+++ b/drivers/pinctrl/pinctrl-single.c
@@ -1604,6 +1604,9 @@ static inline void pcs_irq_set(struct pcs_soc_data *pcs_soc,
 		pcs->write(mask, pcswi->reg);
 		raw_spin_unlock(&pcs->lock);
 	}
+
+	if (pcs_soc->rearm)
+		pcs_soc->rearm();
 }
 
 /**
@@ -1626,8 +1629,6 @@ static void pcs_irq_unmask(struct irq_data *d)
 	struct pcs_soc_data *pcs_soc = irq_data_get_irq_chip_data(d);
 
 	pcs_irq_set(pcs_soc, d->irq, true);
-	if (pcs_soc->rearm)
-		pcs_soc->rearm();
 }
 
 /**
-- 
1.7.4.1


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

end of thread, other threads:[~2013-11-19  8:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-11 16:13 [PATCH] pinctrl: single: call pcs_soc->rearm() whenever IRQ mask is changed Roger Quadros
2013-10-11 16:19 ` Linus Walleij
2013-10-11 17:23   ` Tony Lindgren
2013-11-12 18:44     ` Linus Walleij
2013-11-12 19:56       ` Tony Lindgren
2013-11-14 18:24         ` Tony Lindgren
2013-11-19  8:41           ` Linus Walleij
2013-10-11 17:21 ` Tony Lindgren
2013-10-14  8:15   ` Roger Quadros

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).