Re: [PATCH] spi: Set cs-gpios to output direction

2014-05-27 Thread Stephen Boyd
On 05/24/14 04:54, Mark Brown wrote: > On Fri, May 23, 2014 at 05:57:34PM -0700, Stephen Boyd wrote: >> Some gpios used for cs-gpios may not be configured for output by >> default. In these cases gpio_set_value() won't have any effect >> and so the chip select line won't toggle. Request the cs-gpio

Re: [PATCH] spi: Set cs-gpios to output direction

2014-05-27 Thread Linus Walleij
On Sat, May 24, 2014 at 2:57 AM, Stephen Boyd wrote: > Also, is it better to convert this over to the gpiod interfaces? Yes :-) Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo in

Re: [PATCH] spi: Set cs-gpios to output direction

2014-05-24 Thread Mark Brown
On Fri, May 23, 2014 at 05:57:34PM -0700, Stephen Boyd wrote: > Some gpios used for cs-gpios may not be configured for output by > default. In these cases gpio_set_value() won't have any effect > and so the chip select line won't toggle. Request the cs-gpios > and set them to output direction once

[PATCH] spi: Set cs-gpios to output direction

2014-05-23 Thread Stephen Boyd
Some gpios used for cs-gpios may not be configured for output by default. In these cases gpio_set_value() won't have any effect and so the chip select line won't toggle. Request the cs-gpios and set them to output direction once we know if the chip select is default high or default low. Cc: Linus