Skip to content

spi: Add support for non-blocking synchronous transfers

Balaji Rao linux-spi lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2spi: Add support for non-blocking synchronous transfersinclude/linux/spi/spi.h+31 -00 replies
2/2spi_bitbang: Add support for non-blocking synchronous transfersdrivers/spi/spi_bitbang.c include/linux/spi/spi_bitbang.h+125 -1074 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] spi: Add support for non-blocking synchronous transfers

Hi,

During the course of development of an accelerometer driver, we saw the necessity to execute spi transfers synchronously within an interrupt handler. When using a workqueue instead, we observed a huge number of overruns with very high cpu utlization, which is unacceptable.

This series adds a new interface for this and modifies no existing ones.

[PATCH 1/2] - Adds synchronous non-blocking transfer support to spi core [PATCH 2/2] - Implements this support in spi_bitbang.c

Balaji Rao (2):
spi_bitbang: Add support for non-blocking synchronous transfers
spi: Add support for non-blocking synchronous transfers

 drivers/spi/spi_bitbang.c       |  227 +++++++++++++++++++++------------------
 include/linux/spi/spi.h         |   31 +++++
 include/linux/spi/spi_bitbang.h |    5 +
 3 files changed, 156 insertions(+), 107 deletions(-)

--
Balaji Rao