public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] Davinci: SPI: add the missing v2 patch changes
@ 2010-07-01  8:41 Nick Thompson
  2010-07-06  0:07 ` Paulraj, Sandeep
  0 siblings, 1 reply; 2+ messages in thread
From: Nick Thompson @ 2010-07-01  8:41 UTC (permalink / raw)
  To: u-boot

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>
---
 drivers/spi/davinci_spi.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/drivers/spi/davinci_spi.c b/drivers/spi/davinci_spi.c
index 4518ecb..13aca52 100644
--- a/drivers/spi/davinci_spi.c
+++ b/drivers/spi/davinci_spi.c
@@ -173,7 +173,7 @@ static int davinci_spi_read(struct spi_slave *slave, unsigned int len,
 }
 
 static int davinci_spi_write(struct spi_slave *slave, unsigned int len,
-		const u8 *txp, unsigned long flags)
+			     const u8 *txp, unsigned long flags)
 {
 	struct davinci_spi_slave *ds = to_davinci_spi(slave);
 	unsigned int data1_reg_val;
@@ -237,7 +237,7 @@ static int davinci_spi_read_write(struct spi_slave *slave, unsigned int len,
 #endif
 
 int spi_xfer(struct spi_slave *slave, unsigned int bitlen,
-		const void *dout, void *din, unsigned long flags)
+	     const void *dout, void *din, unsigned long flags)
 {
 	unsigned int len;
 
@@ -266,6 +266,10 @@ int spi_xfer(struct spi_slave *slave, unsigned int bitlen,
 #ifndef CONFIG_SPI_HALF_DUPLEX
 	else
 		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
 
 out:
-- 
1.7.0.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH] Davinci: SPI: add the missing v2 patch changes
  2010-07-01  8:41 [U-Boot] [PATCH] Davinci: SPI: add the missing v2 patch changes Nick Thompson
@ 2010-07-06  0:07 ` Paulraj, Sandeep
  0 siblings, 0 replies; 2+ messages in thread
From: Paulraj, Sandeep @ 2010-07-06  0:07 UTC (permalink / raw)
  To: u-boot


> 
> 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>
> ---
>  drivers/spi/davinci_spi.c |    8 ++++++--
>  1 files changed, 6 insertions(+), 2 deletions(-)

Thanks

Pushed to u-boot-ti

Sandeep

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-07-06  0:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-01  8:41 [U-Boot] [PATCH] Davinci: SPI: add the missing v2 patch changes Nick Thompson
2010-07-06  0:07 ` Paulraj, Sandeep

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox