Re: [PATCH v6 1/2] spi: add support for DLN-2 USB-SPI adapter

2014-11-27 Thread Laurentiu Palcu
On Wed, Nov 26, 2014 at 06:25:21PM +, Mark Brown wrote: > On Wed, Nov 26, 2014 at 12:09:09PM +0200, Laurentiu Palcu wrote: > > > +static int dln2_spi_transfer_one_message(struct spi_master *master, > > +struct spi_message *msg) > > +{ > > + struct dln2_spi

Re: [PATCH v6 1/2] spi: add support for DLN-2 USB-SPI adapter

2014-11-26 Thread Mark Brown
On Wed, Nov 26, 2014 at 12:09:09PM +0200, Laurentiu Palcu wrote: > +static int dln2_spi_transfer_one_message(struct spi_master *master, > + struct spi_message *msg) > +{ > + struct dln2_spi *dln2 = spi_master_get_devdata(master); > + struct spi_device *

[PATCH v6 1/2] spi: add support for DLN-2 USB-SPI adapter

2014-11-26 Thread Laurentiu Palcu
This adds support for Diolan DLN2 USB-SPI adapter. Information about the USB protocol interface can be found in the Programmer's Reference Manual [1], see section 5.4.6 for the SPI master module commands and responses. [1] https://www.diolan.com/downloads/dln-api-manual.pdf Signed-off-by: Lauren