mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-23 07:31:32 +00:00
Davinci: SPI: add the missing v2 patch changes
Two Indentation fixes. Catch requests for full-duplex transfers when driver configured for half-duplex operation only. Signed-off-by: Nick Thompson <nick.thompson@ge.com> Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
This commit is contained in:
parent
89716964d9
commit
dce6538f5d
1 changed files with 6 additions and 2 deletions
|
@ -266,6 +266,10 @@ int spi_xfer(struct spi_slave *slave, unsigned int bitlen,
|
||||||
#ifndef CONFIG_SPI_HALF_DUPLEX
|
#ifndef CONFIG_SPI_HALF_DUPLEX
|
||||||
else
|
else
|
||||||
return davinci_spi_read_write(slave, len, din, dout, flags);
|
return davinci_spi_read_write(slave, len, din, dout, flags);
|
||||||
|
#else
|
||||||
|
printf("SPI full duplex transaction requested with "
|
||||||
|
"CONFIG_SPI_HALF_DUPLEX defined.\n");
|
||||||
|
flags |= SPI_XFER_END;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
out:
|
out:
|
||||||
|
|
Loading…
Add table
Reference in a new issue