Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1292166
| From | Linus Walleij <linus.walleij@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2 2/2] gpio: pxa: add pin control gpio direction and request |
| Date | 2015-12-15 14:20 +0100 |
| Message-ID | <qFXGi-4AF-11@gated-at.bofh.it> (permalink) |
| References | <qF1iV-8qA-3@gated-at.bofh.it> <qF1iV-8qA-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Sat, Dec 12, 2015 at 11:55 PM, Robert Jarzmik <robert.jarzmik@free.fr> wrote: > If a pin control driver is available, use it to change the gpio > direction. If not fallback to directly manipulating the gpio direction > register. > > The reason to use the pin control driver first is that pin control in > pxa2xx architecture implies changing the gpio direction, even for non > gpio functions. In order to do it atomically, only one driver should > control the gpio direction, and if a pin controller is available, it has > to be him. > > There is a small catch : if CONFIG_PINCTRL is selected, then a pinctrl > driver has to be probed. If not, gpio_request() will return > -EPROBE_DEFER as pinctrl_request_gpio() returns it in that case. > > Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> > --- > Since v1: expand commit message to state the gpio possible breakage if > CONFIG_PINCTRL is selected and no pinctrl driver is built. Patch applied. Now you only need to send the incremental diff for patch 1/2. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v2 2/2] gpio: pxa: add pin control gpio direction and request Robert Jarzmik <robert.jarzmik@free.fr> - 2015-12-13 00:00 +0100 Re: [PATCH v2 2/2] gpio: pxa: add pin control gpio direction and request Linus Walleij <linus.walleij@linaro.org> - 2015-12-15 14:20 +0100
csiph-web