From: Jagan Teki Date: Thu, 3 Dec 2015 16:55:20 +0000 (+0530) Subject: spi: ti_qspi: Fix SPI_3WIRE checking using mode X-Git-Url: http://git.dujemihanovic.xyz/img/sics.gif?a=commitdiff_plain;h=cd337da21ecea0f34335d3b2d33bcd28d9e3d0d0;p=u-boot.git spi: ti_qspi: Fix SPI_3WIRE checking using mode SPI_3WIRE is spi mode not spi flags, so this patch fixed the spi-3wire checking throgh mode instead of flags. Cc: Mugunthan V N Acked-by: Simon Glass Signed-off-by: Jagan Teki --- diff --git a/drivers/spi/ti_qspi.c b/drivers/spi/ti_qspi.c index 646dd899d3..5747ed1fa9 100644 --- a/drivers/spi/ti_qspi.c +++ b/drivers/spi/ti_qspi.c @@ -293,7 +293,7 @@ int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout, qslave->cmd = 0; qslave->cmd |= QSPI_WLEN(8); qslave->cmd |= QSPI_EN_CS(slave->cs); - if (flags & SPI_3WIRE) + if (qslave->mode & SPI_3WIRE) qslave->cmd |= QSPI_3_PIN; qslave->cmd |= 0xfff;