linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] pinctrl: stm32: activate strict mux mode
@ 2016-12-14 14:24 gabriel.fernandez
  2016-12-16 12:37 ` Patrice Chotard
  2016-12-30  8:07 ` Linus Walleij
  0 siblings, 2 replies; 3+ messages in thread
From: gabriel.fernandez @ 2016-12-14 14:24 UTC (permalink / raw)
  To: Linus Walleij, Maxime Coquelin, Alexandre Torgue,
	Patrice Chotard, Laxman Dewangan
  Cc: linux-gpio, linux-arm-kernel, linux-kernel, gabriel.fernandez

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

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

* Re: [PATCH] pinctrl: stm32: activate strict mux mode
  2016-12-14 14:24 [PATCH] pinctrl: stm32: activate strict mux mode gabriel.fernandez
@ 2016-12-16 12:37 ` Patrice Chotard
  2016-12-30  8:07 ` Linus Walleij
  1 sibling, 0 replies; 3+ messages in thread
From: Patrice Chotard @ 2016-12-16 12:37 UTC (permalink / raw)
  To: gabriel.fernandez, Linus Walleij, Maxime Coquelin,
	Alexandre Torgue, Laxman Dewangan
  Cc: linux-gpio, linux-arm-kernel, linux-kernel



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

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

* Re: [PATCH] pinctrl: stm32: activate strict mux mode
  2016-12-14 14:24 [PATCH] pinctrl: stm32: activate strict mux mode gabriel.fernandez
  2016-12-16 12:37 ` Patrice Chotard
@ 2016-12-30  8:07 ` Linus Walleij
  1 sibling, 0 replies; 3+ messages in thread
From: Linus Walleij @ 2016-12-30  8:07 UTC (permalink / raw)
  To: Gabriel FERNANDEZ
  Cc: Maxime Coquelin, Alexandre Torgue, Patrice Chotard,
	Laxman Dewangan, linux-gpio, linux-arm-kernel, linux-kernel

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

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

end of thread, other threads:[~2016-12-30  8:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-14 14:24 [PATCH] pinctrl: stm32: activate strict mux mode gabriel.fernandez
2016-12-16 12:37 ` Patrice Chotard
2016-12-30  8:07 ` Linus Walleij

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).