linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Linux SPI slave support
@ 2012-06-30  3:15 Marek Vasut
       [not found] ` <201206300515.41575.marex-ynQEQJNshbs@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Marek Vasut @ 2012-06-30  3:15 UTC (permalink / raw)
  To: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Hello,

is there currently any ongoing effort to support SPI slave mode in Linux?

If there is none, could you please share any hints that might help me better 
choose and go in the direction of implementing the SPI slave support?

I had this quick idea of simply extending the flags field of struct spi_master 
{} by something like SPI_MASTER_CAN_BE_SWITCHED_TO_SLAVE_MODE (shortened of 
course). Then there'd have to be a function present that can switch the mode, 
also in struct spi_master it seems. And then, any driver willing to use the 
slave support will simply call this switch function. Something amongst those 
lines maybe? Basically, the idea would be to have SPI slave mode drivers and 
master mode drivers using the same API, just make the bus configured 
differently.

Please advise. Thanks in advance!

Best regards,
Marek Vasut

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

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

end of thread, other threads:[~2012-07-17  9:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-30  3:15 Linux SPI slave support Marek Vasut
     [not found] ` <201206300515.41575.marex-ynQEQJNshbs@public.gmane.org>
2012-06-30  6:28   ` Shubhrajyoti Datta
     [not found]     ` <CAM=Q2cs8zGTMu+Du1E8aLkiLpyB6mVH=Omt7pJRe1iFBb+Zqaw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-06-30 11:42       ` Marek Vasut
2012-07-01 18:23       ` Marek Vasut
2012-07-16  0:26       ` Marek Vasut
     [not found]         ` <201207160226.19409.marex-ynQEQJNshbs@public.gmane.org>
2012-07-17  8:12           ` Shubhrajyoti Datta
     [not found]             ` <CAM=Q2ctBCOtSkC-vK4+drsuAmEkk4e=Tk3ZQtZYfqqOejhS_xw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-07-17  8:52               ` Marek Vasut
     [not found]                 ` <201207171052.49859.marex-ynQEQJNshbs@public.gmane.org>
2012-07-17  9:00                   ` Shubhrajyoti Datta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).