lkml.org 
[lkml]   [2018]   [Aug]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[RESEND PATCH] mfd: stmpe: honor gpio interrupt probe deferral
Date
From: Marcel Ziswiler <marcel.ziswiler@toradex.com>

Actually honor probe deferral in trying to get the GPIO interrupt as
of_get_named_gpio_flags() in stmpe_of_probe() may as well just do so.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>

---

drivers/mfd/stmpe.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/mfd/stmpe.c b/drivers/mfd/stmpe.c
index 566caca4efd8..4d6ffd3ef398 100644
--- a/drivers/mfd/stmpe.c
+++ b/drivers/mfd/stmpe.c
@@ -1331,6 +1331,8 @@ int stmpe_probe(struct stmpe_client_info *ci, enum stmpe_partnum partnum)
return -ENOMEM;

stmpe_of_probe(pdata, np);
+ if (-EPROBE_DEFER == pdata->irq_gpio)
+ return -EPROBE_DEFER;

if (of_find_property(np, "interrupts", NULL) == NULL)
ci->irq = -1;
--
2.14.4
\
 
 \ /
  Last update: 2018-08-14 15:03    [W:0.030 / U:0.436 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site