[linux-sunxi] Re: [PATCH] pinctrl: sunxi: set pin function as input on export

2016-02-16 Thread Linus Walleij
On Tue, Feb 16, 2016 at 9:00 AM, Krzysztof Adamski wrote: > While sysfs API may be very limited it does have it's strengths too. One of > them is that it's trivially scriptable even from bash or other scripting > languages Feel free to contribute a tool to

[linux-sunxi] Re: [PATCH] pinctrl: sunxi: set pin function as input on export

2016-02-16 Thread Krzysztof Adamski
On Mon, Feb 15, 2016 at 11:04:26PM +0100, Linus Walleij wrote: On Mon, Feb 8, 2016 at 3:37 PM, Krzysztof Adamski wrote: Default function of a pin in sunxi SoCs is "disabled". By default gpios exported by sysfs are set as input and indeed, when reading "direction"

[linux-sunxi] Re: [PATCH] pinctrl: sunxi: set pin function as input on export

2016-02-15 Thread Linus Walleij
On Mon, Feb 8, 2016 at 3:37 PM, Krzysztof Adamski wrote: > Default function of a pin in sunxi SoCs is "disabled". By default gpios > exported by sysfs are set as input and indeed, when reading "direction" > file you will get "in". The "value" pin won't return proper

[linux-sunxi] Re: [PATCH] pinctrl: sunxi: set pin function as input on export

2016-02-08 Thread Maxime Ripard
Hi, On Mon, Feb 08, 2016 at 03:37:22PM +0100, Krzysztof Adamski wrote: > Default function of a pin in sunxi SoCs is "disabled". By default gpios > exported by sysfs are set as input and indeed, when reading "direction" > file you will get "in". The "value" pin won't return proper value, > though,