Re: [PATCH] i.MX: SPI: Respect SPI_LSB_FIRST flag in mode settings

2015-01-06 Thread Andrey Smirnov
> Better introduce a imx_xchg_single which does the necessary bit > reversing and calls imx->xchg_single. This avoids duplicating the code > for all three bits_per_word settings. > I like this idea. Will do for the next version of the patch. Thanks, Andrey ___

Re: [PATCH] i.MX: SPI: Respect SPI_LSB_FIRST flag in mode settings

2015-01-05 Thread Sascha Hauer
Hi Andrey, On Wed, Dec 31, 2014 at 07:10:55AM -0800, Andrey Smirnov wrote: > Add code to support SPI transfers that have data shifted out least > significant bit first. This is useful in many cases, but specifically > it is needed for drivers/firmware/altera_serial.c to work on i.MX > platform. >

[PATCH] i.MX: SPI: Respect SPI_LSB_FIRST flag in mode settings

2014-12-31 Thread Andrey Smirnov
Add code to support SPI transfers that have data shifted out least significant bit first. This is useful in many cases, but specifically it is needed for drivers/firmware/altera_serial.c to work on i.MX platform. Signed-off-by: Andrey Smirnov --- drivers/spi/imx_spi.c | 50 ++