* [PATCH 1/2] mfd: stmpe: DT: Enable no-irq mode configuration
@ 2013-03-01 12:07 Linus Walleij
2013-03-22 8:14 ` Linus Walleij
2013-04-05 16:06 ` Samuel Ortiz
0 siblings, 2 replies; 3+ messages in thread
From: Linus Walleij @ 2013-03-01 12:07 UTC (permalink / raw)
To: Samuel Ortiz, linux-kernel
Cc: Anmar Oueja, Gabriel Fernandez, devicetree-discuss, Linus Walleij
From: Gabriel Fernandez <gabriel.fernandez@stericsson.com>
If there is no interrupt property into stmpe node
then activate the no-irq mode by setting the irq
value to -1.
Cc: devicetree-discuss@lists.ozlabs.org
Signed-off-by: Gabriel Fernandez <gabriel.fernandez@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
drivers/mfd/stmpe.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/mfd/stmpe.c b/drivers/mfd/stmpe.c
index 4b11202..e550dcb 100644
--- a/drivers/mfd/stmpe.c
+++ b/drivers/mfd/stmpe.c
@@ -1057,6 +1057,9 @@ int stmpe_probe(struct stmpe_client_info *ci, int partnum)
return -ENOMEM;
stmpe_of_probe(pdata, np);
+
+ if (of_find_property(np, "interrupts", NULL) == NULL)
+ ci->irq = -1;
}
stmpe = devm_kzalloc(ci->dev, sizeof(struct stmpe), GFP_KERNEL);
--
1.7.11.3
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] mfd: stmpe: DT: Enable no-irq mode configuration
2013-03-01 12:07 [PATCH 1/2] mfd: stmpe: DT: Enable no-irq mode configuration Linus Walleij
@ 2013-03-22 8:14 ` Linus Walleij
2013-04-05 16:06 ` Samuel Ortiz
1 sibling, 0 replies; 3+ messages in thread
From: Linus Walleij @ 2013-03-22 8:14 UTC (permalink / raw)
To: Samuel Ortiz
Cc: linux-kernel, Anmar Oueja, Gabriel Fernandez, devicetree-discuss
On Fri, Mar 1, 2013 at 1:07 PM, Linus Walleij
<linus.walleij@stericsson.com> wrote:
> From: Gabriel Fernandez <gabriel.fernandez@stericsson.com>
>
> If there is no interrupt property into stmpe node
> then activate the no-irq mode by setting the irq
> value to -1.
>
> Cc: devicetree-discuss@lists.ozlabs.org
> Signed-off-by: Gabriel Fernandez <gabriel.fernandez@stericsson.com>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Hi Sam, ping on this!
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] mfd: stmpe: DT: Enable no-irq mode configuration
2013-03-01 12:07 [PATCH 1/2] mfd: stmpe: DT: Enable no-irq mode configuration Linus Walleij
2013-03-22 8:14 ` Linus Walleij
@ 2013-04-05 16:06 ` Samuel Ortiz
1 sibling, 0 replies; 3+ messages in thread
From: Samuel Ortiz @ 2013-04-05 16:06 UTC (permalink / raw)
To: Linus Walleij
Cc: linux-kernel, Anmar Oueja, Gabriel Fernandez, devicetree-discuss,
Linus Walleij
Hi Linus,
On Fri, Mar 01, 2013 at 01:07:16PM +0100, Linus Walleij wrote:
> From: Gabriel Fernandez <gabriel.fernandez@stericsson.com>
>
> If there is no interrupt property into stmpe node
> then activate the no-irq mode by setting the irq
> value to -1.
>
> Cc: devicetree-discuss@lists.ozlabs.org
> Signed-off-by: Gabriel Fernandez <gabriel.fernandez@stericsson.com>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
> drivers/mfd/stmpe.c | 3 +++
> 1 file changed, 3 insertions(+)
Applied to mfd-next, thanks.
Cheers,
Samuel.
--
Intel Open Source Technology Centre
http://oss.intel.com/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-04-05 16:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-01 12:07 [PATCH 1/2] mfd: stmpe: DT: Enable no-irq mode configuration Linus Walleij
2013-03-22 8:14 ` Linus Walleij
2013-04-05 16:06 ` Samuel Ortiz
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®