Message ID | 1390231327.11756.3.camel@phoenix (mailing list archive) |
---|---|
State | Accepted |
Commit | d2acb25b07ffda2b42d80c19b3ea84fd8e2d591b |
Headers | show |
On Mon, Jan 20, 2014 at 11:22:07PM +0800, Axel Lin wrote:
> Otherwise, spi_setup() fails with unsupported mode bits message.
Applied, thanks.
diff --git a/drivers/spi/spi-nuc900.c b/drivers/spi/spi-nuc900.c index 5040630..bae97ff 100644 --- a/drivers/spi/spi-nuc900.c +++ b/drivers/spi/spi-nuc900.c @@ -361,6 +361,8 @@ static int nuc900_spi_probe(struct platform_device *pdev) init_completion(&hw->done); master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; + if (hw->pdata->lsb) + master->mode_bits |= SPI_LSB_FIRST; master->num_chipselect = hw->pdata->num_cs; master->bus_num = hw->pdata->bus_num; hw->bitbang.master = hw->master;
Otherwise, spi_setup() fails with unsupported mode bits message. Signed-off-by: Axel Lin <axel.lin@ingics.com> --- drivers/spi/spi-nuc900.c | 2 ++ 1 file changed, 2 insertions(+)