Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1541938 > unrolled thread

[PATCH] pinctrl: stm32: activate strict mux mode

Started by<gabriel.fernandez@st.com>
First post2016-12-14 15:30 +0100
Last post2016-12-30 09:10 +0100
Articles 3 — 3 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] pinctrl: stm32: activate strict mux mode <gabriel.fernandez@st.com> - 2016-12-14 15:30 +0100
    Re: [PATCH] pinctrl: stm32: activate strict mux mode Patrice Chotard <patrice.chotard@st.com> - 2016-12-16 13:40 +0100
    Re: [PATCH] pinctrl: stm32: activate strict mux mode Linus Walleij <linus.walleij@linaro.org> - 2016-12-30 09:10 +0100

#1541938 — [PATCH] pinctrl: stm32: activate strict mux mode

From<gabriel.fernandez@st.com>
Date2016-12-14 15:30 +0100
Subject[PATCH] pinctrl: stm32: activate strict mux mode
Message-ID<sOiJb-7xh-1@gated-at.bofh.it>
From: Gabriel Fernandez <gabriel.fernandez@st.com>

This activates strict mode muxing for the STM32 pin controllers,
as these do not allow GPIO and functions to use the same pin
simultaneously.

Signed-off-by: Gabriel Fernandez <gabriel.fernandez@st.com>
---
 drivers/pinctrl/stm32/pinctrl-stm32.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/pinctrl/stm32/pinctrl-stm32.c b/drivers/pinctrl/stm32/pinctrl-stm32.c
index efc4371..c983a1e 100644
--- a/drivers/pinctrl/stm32/pinctrl-stm32.c
+++ b/drivers/pinctrl/stm32/pinctrl-stm32.c
@@ -631,6 +631,7 @@ static int stm32_pmx_gpio_set_direction(struct pinctrl_dev *pctldev,
 	.get_function_groups	= stm32_pmx_get_func_groups,
 	.set_mux		= stm32_pmx_set_mux,
 	.gpio_set_direction	= stm32_pmx_gpio_set_direction,
+	.strict			= true,
 };
 
 /* Pinconf functions */
-- 
1.9.1

[toc] | [next] | [standalone]


#1543432

FromPatrice Chotard <patrice.chotard@st.com>
Date2016-12-16 13:40 +0100
Message-ID<sOZXQ-3A4-23@gated-at.bofh.it>
In reply to#1541938

On 12/14/2016 03:24 PM, gabriel.fernandez@st.com wrote:
> From: Gabriel Fernandez <gabriel.fernandez@st.com>
> 
> This activates strict mode muxing for the STM32 pin controllers,
> as these do not allow GPIO and functions to use the same pin
> simultaneously.
> 
> Signed-off-by: Gabriel Fernandez <gabriel.fernandez@st.com>
> ---
>  drivers/pinctrl/stm32/pinctrl-stm32.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/pinctrl/stm32/pinctrl-stm32.c b/drivers/pinctrl/stm32/pinctrl-stm32.c
> index efc4371..c983a1e 100644
> --- a/drivers/pinctrl/stm32/pinctrl-stm32.c
> +++ b/drivers/pinctrl/stm32/pinctrl-stm32.c
> @@ -631,6 +631,7 @@ static int stm32_pmx_gpio_set_direction(struct pinctrl_dev *pctldev,
>  	.get_function_groups	= stm32_pmx_get_func_groups,
>  	.set_mux		= stm32_pmx_set_mux,
>  	.gpio_set_direction	= stm32_pmx_gpio_set_direction,
> +	.strict			= true,
>  };
>  
>  /* Pinconf functions */
> 

Hi Gaby

Acked-by: Patrice Chotard <patrice.chotard@st.com>

regards

[toc] | [prev] | [next] | [standalone]


#1548483

FromLinus Walleij <linus.walleij@linaro.org>
Date2016-12-30 09:10 +0100
Message-ID<sU0qd-1M6-1@gated-at.bofh.it>
In reply to#1541938
On Wed, Dec 14, 2016 at 3:24 PM,  <gabriel.fernandez@st.com> wrote:

> From: Gabriel Fernandez <gabriel.fernandez@st.com>
>
> This activates strict mode muxing for the STM32 pin controllers,
> as these do not allow GPIO and functions to use the same pin
> simultaneously.
>
> Signed-off-by: Gabriel Fernandez <gabriel.fernandez@st.com>

Patch applied with Patrice's ACK.

Yours,
Linus Walleij

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web