Files
kernel_xiaomi_sm8250/include/linux
David Brownell 8ae12a0d85 [PATCH] spi: simple SPI framework
This is the core of a small SPI framework, implementing the model of a
queue of messages which complete asynchronously (with thin synchronous
wrappers on top).

  - It's still less than 2KB of ".text" (ARM).  If there's got to be a
    mid-layer for something so simple, that's the right size budget.  :)

  - The guts use board-specific SPI device tables to build the driver
    model tree.  (Hardware probing is rarely an option.)

  - This version of Kconfig includes no drivers.  At this writing there
    are two known master controller drivers (PXA/SSP, OMAP MicroWire)
    and three protocol drivers (CS8415a, ADS7846, DataFlash) with LKML
    mentions of other drivers in development.

  - No userspace API.  There are several implementations to compare.
    Implement them like any other driver, and bind them with sysfs.

The changes from last version posted to LKML (on 11-Nov-2005) are minor,
and include:

  - One bugfix (removes a FIXME), with the visible effect of making device
    names be "spiB.C" where B is the bus number and C is the chipselect.

  - The "caller provides DMA mappings" mechanism now has kerneldoc, for
    DMA drivers that want to be fancy.

  - Hey, the framework init can be subsys_init.  Even though board init
    logic fires earlier, at arch_init ... since the framework init is
    for driver support, and the board init support uses static init.

  - Various additional spec/doc clarifications based on discussions
    with other folk.  It adds a brief "thank you" at the end, for folk
    who've helped nudge this framework into existence.

As I've said before, I think that "protocol tweaking" is the main support
that this driver framework will need to evolve.

From: Mark Underwood <basicmark@yahoo.com>

  Update the SPI framework to remove a potential priority inversion case by
  reverting to kmalloc if the pre-allocated DMA-safe buffer isn't available.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2006-01-13 16:29:54 -08:00
..
2006-01-08 20:14:02 -08:00
2006-01-06 14:58:39 -05:00
2006-01-13 16:29:54 -08:00
2005-11-13 18:14:17 -08:00
2006-01-13 09:12:21 -08:00
2006-01-03 13:11:06 -08:00
2006-01-08 20:14:02 -08:00
2006-01-08 20:14:02 -08:00
2006-01-08 20:14:02 -08:00
2006-01-08 20:13:58 -08:00
2006-01-10 00:09:36 +01:00
2006-01-08 20:13:49 -08:00
2005-11-05 21:00:02 -05:00
2005-11-13 18:14:10 -08:00
2006-01-10 08:01:34 -08:00
2005-11-10 02:26:41 +01:00
2006-01-06 08:33:54 -08:00
2006-01-12 12:00:47 -08:00
2005-11-08 17:14:08 +01:00
2005-11-08 09:40:47 -08:00
2006-01-06 13:24:54 -08:00
2006-01-06 13:24:29 -08:00
2006-01-06 08:33:53 -08:00
2006-01-06 08:33:59 -08:00
2005-11-07 14:18:56 +01:00
2006-01-10 08:01:59 -08:00
2006-01-10 08:01:25 -08:00
2006-01-11 18:42:13 -08:00
2006-01-08 20:13:46 -08:00
2006-01-06 08:33:20 -08:00
2006-01-03 13:11:15 -08:00
2006-01-06 08:33:29 -08:00
2005-11-13 18:14:12 -08:00
2005-11-07 07:53:39 -08:00
2005-11-06 12:32:31 -06:00
2005-11-07 07:53:46 -08:00
2006-01-06 08:33:27 -08:00
2006-01-10 08:01:42 -08:00
2006-01-08 20:14:02 -08:00
2005-11-07 07:53:41 -08:00
2005-11-07 07:53:37 -08:00
2006-01-08 20:13:45 -08:00
2006-01-10 08:01:39 -08:00
2006-01-10 08:01:59 -08:00
2006-01-10 08:01:59 -08:00
2006-01-10 08:01:59 -08:00
2006-01-09 15:32:31 -02:00
2005-11-07 07:53:41 -08:00
2006-01-08 20:12:40 -08:00
2006-01-10 08:01:57 -08:00