Dear Shubhrajyoti Datta, > Hello, > > On Sat, Jun 30, 2012 at 8:45 AM, Marek Vasut <ma...@denx.de> wrote: > > 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? > > May be you may want to check the archives. > You may want to see below before designing. > > http://permalink.gmane.org/gmane.linux.kernel.spi.devel/7495 [...]
So, idea V2: 1) Separate out common parts from struct spi_master 2) Create struct spi_slave 2a) Implement spi_slave_send_message for spi_slave 2b) Implement <?> netlink interface to push and pull messages to/from userland ? The protocol won't be done in kernel, but completely in userland. Is this good approach to take? Or maybe 2b can be replaced by blocking read on character device? I think netlink interface might actually be suited quite well for this task. 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/ _______________________________________________ spi-devel-general mailing list spi-devel-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/spi-devel-general