Re: [PATCH v2 2/2] gpio: pxa: add pin control gpio direction and request

2015-12-15 Thread Linus Walleij
On Sat, Dec 12, 2015 at 11:55 PM, Robert Jarzmik 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 archite

[PATCH v2 2/2] gpio: pxa: add pin control gpio direction and request

2015-12-12 Thread Robert Jarzmik
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 function