]> git.baikalelectronics.ru Git - kernel.git/commit
spi: nuc900: Fix mode_bits setting
authorAxel Lin <axel.lin@ingics.com>
Thu, 15 Aug 2013 06:11:21 +0000 (14:11 +0800)
committerMark Brown <broonie@linaro.org>
Thu, 29 Aug 2013 12:40:48 +0000 (13:40 +0100)
commit8b65144bc77d65e7918a6a309b12b6ac66c8bba8
tree3d0d3bb36766323dc2be3ea01818480716c73e67
parentae0ab262d3b4f741bdeb7774236d5d1b99fe913c
spi: nuc900: Fix mode_bits setting

The code in nuc900_slave_select() supports handling SPI_CS_HIGH.
Thus set SPI_CS_HIGH bit in master->mode_bits to make it work.
Otherwise, spi_setup() will return unsupported mode bits error message if
SPI_CS_HIGH is set in the mode field of struct spi_device.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-nuc900.c