• David Brownell's avatar
    [PATCH] SPI core tweaks, bugfix · 0c868461
    David Brownell authored
    This includes various updates to the SPI core:
    
      - Fixes a driver model refcount bug in spi_unregister_master() paths.
    
      - The spi_master structures now have wrappers which help keep drivers
        from needing class-level get/put for device data or for refcounts.
    
      - Check for a few setup errors that would cause oopsing later.
    
      - Docs say more about memory management.  Highlights the use of DMA-safe
        i/o buffers, and zero-initializing spi_message and such metadata.
    
      - Provide a simple alloc/free for spi_message and its spi_transfer;
        this is only one of the possible memory management policies.
    
    Nothing to break code that already works.
    Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    0c868461
spi-summary 17.4 KB