Trying to use spidev to send an spi message, result from spidev_test.c "Illegal argument" . (i.mx23, kernel 3.7)

2012-12-30 Thread Juha Lumme
Hi, I am having issues communicating with a micro controller connected to SPI bus, using spidev. I would like to send messages to my MSP430 from user land, but so far no luck. At least I know that my SPI bus should be ok, since in the same bus I have a SPI flash chip that works. In my DTS I ha

[PATCH V2] mxs: spi: clear XFER_COUNT in ctrl0 field in DMA descriptor

2012-12-25 Thread Juha Lumme
en in the processing of the last DMA descriptor, and thus reads and writes were failing. This is a fix for the problem, by clearing XFER_COUNT bytes in ctrl0 before setting the new XFER_COUNT for DMA descriptor. Cc: Marek Vasut Cc: Fabio Estevam Cc: Shawn Guo Signed-off-by: Juha Lumme Acked-by:

[PATCH] mxs: spi: clear XFER_LEN in CTRL0 register during DMA

2012-12-25 Thread Juha Lumme
On MX23 the XFER_LEN part in CTRL0 register was improperly OR'd, and because of that too many characters were being expected from SPI. This caused a timeout (SSP_TIMEOUT) to happen in the last package in the DMA chain, and resulted into a corrupted read. This is a workaround for the problem, by cle