Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1504892 > unrolled thread
| Started by | Alexandre TORGUE <alexandre.torgue@st.com> |
|---|---|
| First post | 2016-10-20 15:30 +0200 |
| Last post | 2016-10-24 02:00 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 1/2] pinctrl: stm32: remove dependency with interrupt controller Alexandre TORGUE <alexandre.torgue@st.com> - 2016-10-20 15:30 +0200
Re: [PATCH 1/2] pinctrl: stm32: remove dependency with interrupt controller Linus Walleij <linus.walleij@linaro.org> - 2016-10-24 02:00 +0200
| From | Alexandre TORGUE <alexandre.torgue@st.com> |
|---|---|
| Date | 2016-10-20 15:30 +0200 |
| Subject | [PATCH 1/2] pinctrl: stm32: remove dependency with interrupt controller |
| Message-ID | <sulzY-84O-39@gated-at.bofh.it> |
This patch allows to probe stm32 pinctrl driver even if no interrupt
controller is defined to manage gpio irqs.
Signed-off-by: Alexandre TORGUE <alexandre.torgue@st.com>
diff --git a/drivers/pinctrl/stm32/pinctrl-stm32.c b/drivers/pinctrl/stm32/pinctrl-stm32.c
index 200667f..efc4371 100644
--- a/drivers/pinctrl/stm32/pinctrl-stm32.c
+++ b/drivers/pinctrl/stm32/pinctrl-stm32.c
@@ -1092,9 +1092,11 @@ int stm32_pctl_probe(struct platform_device *pdev)
return -EINVAL;
}
- ret = stm32_pctrl_dt_setup_irq(pdev, pctl);
- if (ret)
- return ret;
+ if (of_find_property(np, "interrupt-parent", NULL)) {
+ ret = stm32_pctrl_dt_setup_irq(pdev, pctl);
+ if (ret)
+ return ret;
+ }
for_each_child_of_node(np, child)
if (of_property_read_bool(child, "gpio-controller"))
--
1.9.1
[toc] | [next] | [standalone]
| From | Linus Walleij <linus.walleij@linaro.org> |
|---|---|
| Date | 2016-10-24 02:00 +0200 |
| Message-ID | <svAQh-85f-19@gated-at.bofh.it> |
| In reply to | #1504892 |
On Thu, Oct 20, 2016 at 3:26 PM, Alexandre TORGUE <alexandre.torgue@st.com> wrote: > This patch allows to probe stm32 pinctrl driver even if no interrupt > controller is defined to manage gpio irqs. > > Signed-off-by: Alexandre TORGUE <alexandre.torgue@st.com> Patch applied for fixes. Yours, Linus Walleij
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web