[spi-devel-general] [PATCH] spi: release device claimed by bus_find_device_by_name

2010-04-16 Thread Roman Tereshonkov
In success case the function bus_find_device_by_name calls get_device. In our context put_device should be called to decrease the device count usage. Signed-off-by: Roman Tereshonkov --- drivers/spi/spi.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/spi

[spi-devel-general] [PATCH] omap2_mcspi: add turbo mode support

2010-04-13 Thread Roman Tereshonkov
spi_device controller_data pointer. Signed-off-by: Roman Tereshonkov --- drivers/spi/omap2_mcspi.c | 132 +--- 1 files changed, 111 insertions(+), 21 deletions(-) diff --git a/drivers/spi/omap2_mcspi.c b/drivers/spi/omap2_mcspi.c index d87ca43..ac1fef1 100644

[spi-devel-general] [PATCH] spi: spi_device memory should be released instead of device.

2010-04-12 Thread Roman Tereshonkov
The memory for dev variable is allocated as a part of spi_device structure memory which the dev belongs to. Thus when the memory is released the right pointer is used. Signed-off-by: Roman Tereshonkov --- drivers/spi/spi.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git

[spi-devel-general] [PATCH] omap2_mcspi: change default DMA_MIN_BYTES value to 160

2010-04-12 Thread Roman Tereshonkov
The value 160 has been obtained as optimal in testing it for wl1271 which use spi for communication. In some sense this change might also influence on other spi devices connected to omap2_mcspi controller. Signed-off-by: Roman Tereshonkov --- drivers/spi/omap2_mcspi.c |2 +- 1 files changed

[spi-devel-general] [PATCH 2/2] omap2_mcspi: Use dma_min_bytes parameter when it is configured.

2010-04-06 Thread Roman Tereshonkov
When dma_min_bytes parameter is set as non-zero from device configuration it overlaps the global one DMA_MIN_BYTES. Signed-off-by: Roman Tereshonkov --- drivers/spi/omap2_mcspi.c | 12 ++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/spi/omap2_mcspi.c b

[spi-devel-general] [PATCH 1/2] spi: Add support for dma_min_bytes configuration.

2010-04-06 Thread Roman Tereshonkov
This parameters defines the minimum number of bytes when dma is used. Signed-off-by: Roman Tereshonkov --- drivers/spi/spi.c |1 + include/linux/spi/spi.h |3 +++ 2 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index b76f246

[spi-devel-general] [PATCH 2/2] omap2_mcspi: small fixes of output data format

2010-03-15 Thread Roman Tereshonkov
Replaces %04x by %08x for 32-bits data output. Signed-off-by: Roman Tereshonkov --- drivers/spi/omap2_mcspi.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spi/omap2_mcspi.c b/drivers/spi/omap2_mcspi.c index 3b50d07..a9d58ce 100644 --- a/drivers/spi

[spi-devel-general] [PATCH 1/2] omap2_mcspi: Flush posted writes

2010-03-15 Thread Roman Tereshonkov
mcspi_write_chconf0 is used to control rx/tx triggering. Post-write flushing is needed to get the immediate effect. Signed-off-by: Roman Tereshonkov --- drivers/spi/omap2_mcspi.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/spi/omap2_mcspi.c b/drivers/spi