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-Tag: v2016.01-rc3~34^2~19 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=cd337da21ecea0f34335d3b2d33bcd28d9e3d0d0;p=oweals%2Fu-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;