[PATCH] ARM: Kirkwood: convert ns2 boards to pinctrl

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Tue Jan 8 11:21:04 EST 2013


Dear Andrew Lunn,

On Tue, 8 Jan 2013 17:13:10 +0100, Andrew Lunn wrote:
> > I was not sure about that. As gpio_request triggers the mpp
> > configuration at run time, IMHO there is no point for an initial and
> > statical configuration, except for a documentation purpose.
> 
> [Goes away and reads Docunmentation/gpio.txt]
> 
> Yes, you appear to be correct. Its not necessary. Don't know that.

Yes, Simon is correct.

 gpio_request()
  -> gpio/gpio-mvebu.c:mvebu_gpio_request()
    -> pinctrl/core.c:pinctrl_request_gpio()
      -> pinctrl/pinmux.c:pinmux_request_gpio()
        -> pinctrl/pinmux.c:pin_request()
          -> pinctrl/mvebu/pinctrl-mvebu.c:mvebu_pinmux_gpio_request_enable()
            -> which muxes the pin as GPIO

Pffiou :-)

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com



More information about the linux-arm-kernel mailing list