From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patryk Mezydlo Subject: SPI: Slave mode for McSPI Date: Wed, 4 May 2016 01:34:26 +0200 Message-ID: <20160503233426.GA1366@debian> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE To: linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Return-path: Content-Disposition: inline Sender: linux-spi-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Hi linux-spi developers, My name is Patryk Mezydlo=E2=80=9A and I'm a student participating in G= SOC 2016. My project is to create SPI slave driver for McSPI controller. I would like to have my code added to the mainline, so I'd like to ask about a few details. Implementation for master is located in spi-oma2-mcspi.c I could add a patch which implements slave mode to spi-oma2-mcspi.c, but I think that using a separate driver would allow it to be cleaner. Moreover, I would like to place the implementation of the driver's higher level, which communicates with userspace, in the implementation of the lower layer, which communicates with McSPI controller. Thanks to this, I could create a compact driver enabling operation McSPI in slave mode. I would like to get some feedback about my idea. What is in your view the best possible solution? Thanks, Patryk -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html