Re: [PATCH 1/1] spi: omap2-mcspi: add option to configure output line for McSPI driver

2012-10-17 Thread Mark Brown
On Mon, Oct 08, 2012 at 04:39:40PM -0600, Stan Hu wrote: McSPI driver previously assumed that D0 was input (MISO) and D1 was output (MOSI). This forces the hardware designer to wire all SPI peripherals in this way when it should be a software configuration option. I applied a similar patch

Re: [PATCH 1/1] spi: omap2-mcspi: add option to configure output line for McSPI driver

2012-10-09 Thread Stan Hu
The other configuration is used in the case when you have SPI devices wired opposite to the default case. This was the case for a custom board using the McSPI driver. I tested it by just passing in the parameter in the device config data when registering the device under the spidev driver. I

[PATCH 1/1] spi: omap2-mcspi: add option to configure output line for McSPI driver

2012-10-08 Thread Stan Hu
McSPI driver previously assumed that D0 was input (MISO) and D1 was output (MOSI). This forces the hardware designer to wire all SPI peripherals in this way when it should be a software configuration option. Signed-off-by: Stan Hu sta...@gmail.com --- drivers/spi/spi-omap2-mcspi.c