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_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
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
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
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
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
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
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