public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [Patch] Add spi full duplex mode transfer support
@ 2006-08-30  4:40 Luke Yang
  2006-08-30  4:52 ` [spi-devel-general] " David Brownell
  0 siblings, 1 reply; 5+ messages in thread
From: Luke Yang @ 2006-08-30  4:40 UTC (permalink / raw)
  To: linux-kernel, dbrownell, spi-devel-general

[-- Attachment #1: Type: text/plain, Size: 723 bytes --]

Hi all,

   To enable full duplex mode spi transfer in Blackfin spi master
driver, I need an extra field in spi_transfer structure. Attached the
right format patch.

Signed-off-by: Luke Yang <luke.adi@gmail.com>

 spi.h |    1 +
 1 files changed, 1 insertion(+)

diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h
index c8bb680..99816eb 100644
--- a/include/linux/spi/spi.h
+++ b/include/linux/spi/spi.h
@@ -331,6 +331,7 @@ struct spi_transfer {
        dma_addr_t      rx_dma;

        unsigned        cs_change:1;
+       unsigned        is_duplex:1;
        u8              bits_per_word;
        u16             delay_usecs;
        u32             speed_hz;

-- 
Best regards,
Luke Yang
luke.adi@gmail.com

[-- Attachment #2: spi_full_duplex.patch --]
[-- Type: text/x-patch, Size: 331 bytes --]

diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h
index c8bb680..99816eb 100644
--- a/include/linux/spi/spi.h
+++ b/include/linux/spi/spi.h
@@ -331,6 +331,7 @@ struct spi_transfer {
 	dma_addr_t	rx_dma;
 
 	unsigned	cs_change:1;
+	unsigned        is_duplex:1;
 	u8		bits_per_word;
 	u16		delay_usecs;
 	u32		speed_hz;

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

end of thread, other threads:[~2006-08-30 16:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-30  4:40 [Patch] Add spi full duplex mode transfer support Luke Yang
2006-08-30  4:52 ` [spi-devel-general] " David Brownell
     [not found]   ` <2e2add590608300337h3e7e806bs69b63b24d73a104c@mail.gmail.com>
2006-08-30 15:35     ` David Brownell
2006-08-30 15:56     ` Stephen Street
2006-08-30 16:26       ` David Brownell

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