[5/8] SPI: Add SPI slave mode flag

Message ID 1343731360-31691-6-git-send-email-rajeshwari.s@samsung.com
State New
Headers show

Commit Message

Rajeshwari Shinde July 31, 2012, 10:42 a.m.
This patch adds a new SPI mode flags for SPI slave mode.  It enables
slave mode in a SPI interface, and is set/clear in spi_setup_slave()
from the mode parameter.

Signed-off-by: Padmavathi Venna <padma.v@samsung.com>
Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
---
 include/spi.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Comments

Mike Frysinger July 31, 2012, 1:35 p.m. | #1
On Tuesday 31 July 2012 06:42:37 Rajeshwari Shinde wrote:
> This patch adds a new SPI mode flags for SPI slave mode.  It enables
> slave mode in a SPI interface, and is set/clear in spi_setup_slave()
> from the mode parameter.

there is no such functionality in the current SPI API.  if you want to propose 
that, you should start a dedicated patch series for it.  so NAK this for now.
-mike

Patch

diff --git a/include/spi.h b/include/spi.h
index 60e85db..733c395 100644
--- a/include/spi.h
+++ b/include/spi.h
@@ -37,6 +37,7 @@ 
 #define	SPI_LSB_FIRST	0x08			/* per-word bits-on-wire */
 #define	SPI_3WIRE	0x10			/* SI/SO signals shared */
 #define	SPI_LOOP	0x20			/* loopback mode */
+#define	SPI_SLAVE	0x40			/* slave mode */
 
 /* SPI transfer flags */
 #define SPI_XFER_BEGIN	0x01			/* Assert CS before transfer */