29 Jul, 2015

1 commit

  • This patch fixes a regression introduced by commit 232a5adc5199 ("spi:
    bitbang: only toggle bitchanges"). The attempt to optimize writes of
    consecutive bit patterns broke most of the combinations of word size
    and SPI modes due to selecting the wrong bit as the MSB value.

    Fixes: 232a5adc5199 (spi: bitbang: only toggle bitchanges)
    Signed-off-by: Lars Persson
    Signed-off-by: Mark Brown
    Cc: stable@vger.kernel.org

    Lars Persson
     

01 Apr, 2015

1 commit

  • The current implementation of bitbang_txrx_be_cpha0 and
    bitbang_txrx_be_cpha1 always call setmosi. That runs into several
    unnecessary calls into the gpiolib when the level of the GPIO actually
    has not to be changed.

    This patch changes the routines to remember the last GPIO level
    and only calls setmosi if an change has to be made. This
    way it improves the transfer throughput.

    Signed-off-by: Michael Grzeschik
    Signed-off-by: Mark Brown

    Michael Grzeschik
     

13 Jan, 2014

1 commit


06 Jun, 2011

1 commit

  • Sort the SPI makefile and enforce the naming convention spi_*.c for
    spi drivers.

    This change also rolls the contents of atmel_spi.h into the .c file
    since there is only one user of that particular include file.

    v2: - Use 'spi-' prefix instead of 'spi_' to match what seems to be
    be the predominant pattern for subsystem prefixes.
    - Clean up filenames in Kconfig and header comment blocks

    Signed-off-by: Grant Likely
    Acked-by: Wolfram Sang
    Acked-by: Linus Walleij

    Grant Likely