LWN.net Logo

spi: Add support for non-blocking synchronous transfers

From:  Balaji Rao <balajirrao@openmoko.org>
To:  linux-kernel@vger.kernel.org
Subject:  [PATCH 0/2] spi: Add support for non-blocking synchronous transfers
Date:  Sat, 28 Feb 2009 13:40:36 +0530
Message-ID:  <20090228081036.31964.80618.stgit@fedora.yogi>
Cc:  spi-devel-general@lists.sourceforge.net, Andy Green <andy@openmoko.com>, David Brownell <dbrownell@users.sourceforge.net>
Archive-link:  Article, Thread

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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Copyright © 2009, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds