[PATCH] spidev_test.c: extend the spidev_test tool to read a command file

2012-09-03 Thread Jan Luebbe
Currently, spidev_test.c always sends hardcoded data to the device. By fetching this data from a file given as a parameter, one can test real devices. Signed-off-by: Jan Luebbe --- Documentation/spi/spidev_test.c | 73 +++ 1 file changed, 58 insertions

[PATCH 2/2] omap2-mcspi: fall back to PIO when the buffer is in high mem

2012-08-30 Thread Jan Luebbe
UBI uses vmalloc'ed buffers in some cases which are not valid for DMA, so use PIO instead. Signed-off-by: Jan Luebbe --- drivers/spi/spi-omap2-mcspi.c |9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/spi/spi-omap2-mcspi.c b/drivers/spi/spi-omap2-mc

[PATCH 1/2] omap2-mcspi: use the same struct device for map and unmap

2012-08-30 Thread Jan Luebbe
The device mcspi->dev is used when calling dma_map_single, so use it for dma_unmap_single, too. Signed-off-by: Jan Luebbe --- drivers/spi/spi-omap2-mcspi.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-omap2-mcspi.c b/drivers/spi/spi-omap2-mcsp