Messages in this thread |  | | | Date | Tue, 12 Jun 2012 13:13:25 +0200 | | Subject | Re: [PATCH] pinctrl: add a pinctrl_mux_group_selected() function | | From | Linus Walleij <> |
| |
On Thu, Jun 7, 2012 at 5:14 PM, Guennadi Liakhovetski <g.liakhovetski@gmx.de> wrote: > On Thu, 7 Jun 2012, Linus Walleij wrote: >> Isn't the card detection and write protect GPIO lines that >> will be requested with gpio_request()? This is usually the case, >> so I need to ask. GPIOs are usually muxed in on a per-pin basis >> as a result of the gpio_request() call. > > They can be, but they don't have to be. On some SDHI implementations CD is > a dedicated pin, belonging to the controller, but in those cases it is > usually preferable to configure it as a GPIO. On some boards it is just a > GPIO, on others yet it is just missing. Similarly, WP can be a GPIO or > absent.
Sorry just to be clear on what we mean here:
"Configuring it as GPIO" in Linux means that you use the GPIO subsystem and gpiolib to access it.
If you mean that you set some electrical properties that are named as "the GPIO configuration" in the datasheet that is something else.
So that you mux it in as "gpio" (a name of the function from the datasheet) does not make it into a GPIO in the Linux sense if it's not handled by gpiolib.
In the case where such a pin is used by e.g. the MMC driver while put into what the datasheet calls "gpio mode" this is still just one pin in the MMC pinctrl function from the Linux point of view.
But I guess this was what you meant all the time, I'm probably just confused by names being the same for similar but unrelated things ... :-)
Yours, Linus Walleij
|  |